What about the other way around? Lets say that I'm working on an application that allows plugins. My code is open sourced so anyone can see how to make extensions.<div><br></div><div>There would really be no way that I or any other project could prevent someone else from making a plugin that was closed sourced. Is it my responsibility to somehow prevent others from making plugins? Or is it their responsibility to make sure that their code is open? I lean to the former myself, but I'm not a lawyer.</div>
<div><br></div><div>Also thinking about Elias's question. Windows is closed sourced and commercial. Windows is used to open and run Python and Windows is able to execute Python scripts which can run PyQt. So by extension GPL should not be allowed on a Windows computer???</div>
<div><br></div><div>Kyle <br><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 6:00 AM, <span dir="ltr"><<a href="mailto:pyqt-request@riverbankcomputing.com">pyqt-request@riverbankcomputing.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send PyQt mailing list submissions to<br>
<a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:pyqt-request@riverbankcomputing.com">pyqt-request@riverbankcomputing.com</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:pyqt-owner@riverbankcomputing.com">pyqt-owner@riverbankcomputing.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of PyQt digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: build pyqt for python2 and python3?? (Phil Thompson)<br>
2. Help with PyQt licensing question (Elias Bachaalany)<br>
3. Re: Passing a QWidget* wrapped in a PyCObject from a C++<br>
program? (Elias Bachaalany)<br>
4. Re: Help with PyQt licensing question (Phil Thompson)<br>
5. Re: Passing a QWidget* wrapped in a PyCObject from a C++<br>
program? (Phil Thompson)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 21 Oct 2010 08:58:03 +0100<br>
From: Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>><br>
To: BLACK HAWK <<a href="mailto:el_sakir12@yahoo.com">el_sakir12@yahoo.com</a>><br>
Cc: pyqt <<a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a>><br>
Subject: Re: [PyQt] build pyqt for python2 and python3??<br>
Message-ID: <b0f5daee395d44b49adb7019c4693e7b@localhost><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On Wed, 20 Oct 2010 23:04:58 -0700 (PDT), BLACK HAWK<br>
<<a href="mailto:el_sakir12@yahoo.com">el_sakir12@yahoo.com</a>><br>
wrote:<br>
> hi guys,<br>
> i have question about building pyqt for both python2 & python3 on the<br>
same<br>
> pc<br>
><br>
> i want to have both of them as i develop all my apps on python2<br>
> and i want to start porting them to python3<br>
><br>
> i tried build python2-pyqt and all go well but i notic that some libs<br>
> (pyuic4,pyrcc,sip-lib,...)<br>
> are installed in general places and the same places for python3<br>
><br>
> this will make python3 replace python2 installed file<br>
><br>
> so is there a way to build python2 and rename binary files to something<br>
> like<br>
> (py2uic4,py2rcc)<br>
> and for python3 it will be (py3uic4,py3rcc)<br>
> and do the same for all libs installed outside python dist-utils folder<br>
><br>
> i currently use ubuntu 10.10<br>
> and for building<br>
> 1-python2 configure.py ----> in case of python3 --> python3 configure.py<br>
> 2-make<br>
> 3-sudo checkinstall -D make install<br>
><br>
> thanks in advance...<br>
<br>
The files that are installed in common locations (pyuic4, pyrcc4,<br>
pylupdate4) will work with both Python2 and Python3.<br>
<br>
Phil<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 21 Oct 2010 11:40:53 +0200<br>
From: Elias Bachaalany <<a href="mailto:lallousz-pyqt4@yahoo.com">lallousz-pyqt4@yahoo.com</a>><br>
To: <a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a><br>
Subject: [PyQt] Help with PyQt licensing question<br>
Message-ID: <i9p1r4$a1t$<a href="mailto:1@dough.gmane.org">1@dough.gmane.org</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hello,<br>
<br>
I have the following situation and need some help regarding licensing of<br>
PyQt.<br>
<br>
There is a main program (main.exe) that is extensible via plugins.<br>
main.exe does not know about the nature of its plugins.<br>
<br>
The plugins are general purpose, they can do many things to change the<br>
behavior of main.exe.<br>
<br>
main.exe is closed source.<br>
<br>
One plugin could be hosting LUA scripting language.<br>
Another plugin can be not related to scripting.<br>
<br>
There is yet another plugin (plgpython.dll) that hosts Python and is<br>
open source (with New BSD License). Since plgpython.dll hosts Python, it<br>
can also host PyQt.<br>
<br>
Now my question is: do we need a commercial license of PyQt if we own<br>
main.exe (paid for it) and use the open source / free plgpython.dll<br>
program to run PyQt scripts?<br>
<br>
Thanks,<br>
Elias<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 21 Oct 2010 11:45:25 +0200<br>
From: Elias Bachaalany <<a href="mailto:lallousz-pyqt4@yahoo.com">lallousz-pyqt4@yahoo.com</a>><br>
To: <a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a><br>
Subject: Re: [PyQt] Passing a QWidget* wrapped in a PyCObject from a<br>
C++ program?<br>
Message-ID: <i9p23k$a1t$<a href="mailto:2@dough.gmane.org">2@dough.gmane.org</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hi Phil,<br>
<br>
Using Python 2.6, I could make it work with:<br>
<br>
sip.wrapinstance(sip.voidptr(the_widget).__int__(), QtGui.QWidget)<br>
<br>
But only after figuring out that I also had to recompile SIP with<br>
SIP_SUPPORT_PYCOBJECT<br>
<br>
Thanks a lot.<br>
<br>
--<br>
Elias<br>
On 10/18/2010 2:04 PM, Phil Thompson wrote:<br>
> On Mon, 18 Oct 2010 11:45:07 +0200, Elias Bachaalany<br>
> <<a href="mailto:lallousz-pyqt4@yahoo.com">lallousz-pyqt4@yahoo.com</a>> wrote:<br>
>> Hello<br>
>><br>
>> I have a C++ program that creates a QWidget* and can return that to<br>
> Python.<br>
>><br>
>> I want to pass that QWidget * to PyQt so that the newly created widgets<br>
>> have this widget as their parent. How to do that?<br>
>><br>
>> In C++:<br>
>><br>
>> QWidget *theWidget;<br>
>> PyObject *get_widget()<br>
>> {<br>
>> return PyCObject_FromVoidPtr(theWidget, NULL)<br>
>> }<br>
>><br>
>> Now is it possible to get this QWidget* and give to PyQt / QWidget<br>
> class?<br>
><br>
> If your PyCObject is accessible from Python then you should be able to<br>
> do...<br>
><br>
> import sip<br>
> from PyQt4.QtGui import QWidget<br>
><br>
> widget = sip.wrapinstance(sip.voidptr(pycobj, QWidget))<br>
><br>
> Phil<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 21 Oct 2010 11:00:00 +0100<br>
From: Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>><br>
To: Elias Bachaalany <<a href="mailto:lallousz-pyqt4@yahoo.com">lallousz-pyqt4@yahoo.com</a>><br>
Cc: <a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a><br>
Subject: Re: [PyQt] Help with PyQt licensing question<br>
Message-ID: <3c050076e97fd6edc91eb6889fc26b6e@localhost><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On Thu, 21 Oct 2010 11:40:53 +0200, Elias Bachaalany<br>
<<a href="mailto:lallousz-pyqt4@yahoo.com">lallousz-pyqt4@yahoo.com</a>> wrote:<br>
> Hello,<br>
><br>
> I have the following situation and need some help regarding licensing of<br>
<br>
> PyQt.<br>
><br>
> There is a main program (main.exe) that is extensible via plugins.<br>
> main.exe does not know about the nature of its plugins.<br>
><br>
> The plugins are general purpose, they can do many things to change the<br>
> behavior of main.exe.<br>
><br>
> main.exe is closed source.<br>
><br>
> One plugin could be hosting LUA scripting language.<br>
> Another plugin can be not related to scripting.<br>
><br>
> There is yet another plugin (plgpython.dll) that hosts Python and is<br>
> open source (with New BSD License). Since plgpython.dll hosts Python, it<br>
<br>
> can also host PyQt.<br>
><br>
> Now my question is: do we need a commercial license of PyQt if we own<br>
> main.exe (paid for it) and use the open source / free plgpython.dll<br>
> program to run PyQt scripts?<br>
<br>
Yes - you cannot use the GPL version of PyQt in this context. Depending on<br>
the nature of the application, your users may also require commercial<br>
licenses. There are both commercial and technical means that can be used to<br>
resolve this - contact me by email if you want to discuss them.<br>
<br>
Phil<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 21 Oct 2010 11:16:41 +0100<br>
From: Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>><br>
To: Elias Bachaalany <<a href="mailto:lallousz-pyqt4@yahoo.com">lallousz-pyqt4@yahoo.com</a>><br>
Cc: <a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a><br>
Subject: Re: [PyQt] Passing a QWidget* wrapped in a PyCObject from a<br>
C++ program?<br>
Message-ID: <35421991ec023b181e1d71a3fcf40b8e@localhost><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On Thu, 21 Oct 2010 11:45:25 +0200, Elias Bachaalany<br>
<<a href="mailto:lallousz-pyqt4@yahoo.com">lallousz-pyqt4@yahoo.com</a>> wrote:<br>
> Hi Phil,<br>
><br>
> Using Python 2.6, I could make it work with:<br>
><br>
> sip.wrapinstance(sip.voidptr(the_widget).__int__(), QtGui.QWidget)<br>
<br>
sip.wrapinstance(int(sip.voidptr(the_widget)), QtGui.QWidget)<br>
<br>
...is a bit nicer.<br>
<br>
> But only after figuring out that I also had to recompile SIP with<br>
> SIP_SUPPORT_PYCOBJECT<br>
<br>
Whoops - that's a bug.<br>
<br>
Phil<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
PyQt mailing list<br>
<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
<br>
End of PyQt Digest, Vol 75, Issue 46<br>
************************************<br>
</blockquote></div><br></div>