Re: [PyQt] Memory leak

2008-07-06 Thread Giovanni Bajo
On Sat, 2008-07-05 at 23:04 +0100, Phil Thompson wrote: On Thu, 03 Jul 2008 16:04:42 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: Hi Phil, with SIP 4.7.6, PyQt 4.2.2, Qt 4.4.0: import sip import weakref from PyQt4.Qt import * class

Re: [PyQt] Memory leak

2008-07-06 Thread Giovanni Bajo
On Sun, 2008-07-06 at 17:29 +0100, Phil Thompson wrote: On Sun, 06 Jul 2008 15:18:10 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: On Sat, 2008-07-05 at 23:04 +0100, Phil Thompson wrote: On Thu, 03 Jul 2008 16:04:42 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: Hi Phil, with SIP

Re: [PyQt] Compile issues

2008-07-11 Thread Giovanni Bajo
or directory make[1]: *** [sipQtGuicmodule.o] Error 1 make[1]: Leaving directory `/tmp/PyQt-x11-gpl-4.4.2/QtGui' make: *** [all] Error 2 It's a know bug. Use Qt 4.4, or a latest SIP/PyQt snapshot. Or just comment those two lines away. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Compile issues

2008-07-12 Thread Giovanni Bajo
already have libqt4 It's probably not being picked up. What's the output of qmake -v? or a latest SIP/PyQt snapshot. Or just comment those two lines away. I am using the latest snapshot. I wouldn't say so, given the output of the make command: `/tmp/PyQt-x11-gpl-4.4.2/QtGui -- Giovanni Bajo

Re: [PyQt] signals and slots

2008-07-18 Thread Giovanni Bajo
()), lambda idx=idx: self.activated(idx)) menu.addAction(action) [...] def activated(self, idx): Called when the menu items #idx of the menu has been activated. print idx -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing

[PyQt] Weird behaviour of destroyed() slots

2008-07-23 Thread Giovanni Bajo
= Traceback (most recent call last): File bugpyqt.py, line 18, in module assert len(called) == 2, called AssertionError: ['done'] The slot with lambda is called, but the other one is not. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Weird behaviour of destroyed() slots

2008-07-26 Thread Giovanni Bajo
On Sat, 2008-07-26 at 17:10 +0100, Phil Thompson wrote: On Wed, 23 Jul 2008 15:42:18 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: Hi Phil: = import sip from PyQt4.Qt import * called = [] class Core

Re: [PyQt] Weird behaviour of destroyed() slots

2008-07-26 Thread Giovanni Bajo
On Sat, 2008-07-26 at 23:31 +0100, Phil Thompson wrote: On Sat, 26 Jul 2008 21:07:09 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: On Sat, 2008-07-26 at 17:10 +0100, Phil Thompson wrote: On Wed, 23 Jul 2008 15:42:18 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: Hi Phil

Re: [PyQt] SIP - %Exception for StopIteration

2008-08-05 Thread Giovanni Bajo
that in the %MethodCode of that function, by calling PyErr_SetNone(PyExc_StopIteration). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] SIP - %Exception for StopIteration

2008-08-06 Thread Giovanni Bajo
; } else { Item *item = sipCpp-items[a0]; sipResult = sipConvertToInstance([...]); } %End } I'll let you find out the details of how to write the code. Refer to the SIP documentation. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] re: PyQt4.4.3 segfault

2008-08-06 Thread Giovanni Bajo
On 8/6/2008 7:22 PM, juergen urner wrote: sometimes posting reports helps to find the bug :-) did not pass to pass the integer along. nevermind. Well, it shouldn't segfault anyway, should it? -- Giovanni Bajo Develer S.r.l. http://www.develer.com

[PyQt] Bug in QString comparison

2008-09-09 Thread Giovanni Bajo
: print a サ print b Traceback (most recent call last): File stdin, line 1, in module UnicodeEncodeError: 'ascii' codec can't encode character u'\u30b5' in position 0: ordinal not in range(128) Thanks! -- Giovanni Bajo

Re: [PyQt] QGLWidget.renderText problem

2008-09-12 Thread Giovanni Bajo
. Check Trolltech's task tracker about it. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QGLWidget.renderText problem

2008-09-12 Thread Giovanni Bajo
On 9/12/2008 1:32 PM, V. Armando Sole wrote: At 12:17 12/09/2008 +0200, Giovanni Bajo wrote: On 9/12/2008 12:12 PM, V. Armando Sole wrote: Hello, QGLWidget.renderText gives me an OpenGL error for Qt versions = 4.3.0 that prevents any further OpenGL output. Those are Qt bugs, not PyQt nor

[PyQt] Re: Bug in QString comparison

2008-09-17 Thread Giovanni Bajo
On mar, 2008-09-16 at 21:54 +0100, Phil Thompson wrote: On Wed, 10 Sep 2008 01:51:54 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: Hello Phil, this looks weird to me (using sip 4.7.6, PyQt 4.4.2, Qt 4.4.0): === $ python Python 2.5.2 (r252:60911

[PyQt] Patch to add a /Deprecated/ annotation to SIP

2008-09-19 Thread Giovanni Bajo
by an upcoming PyQt3Support release that will mark all PyQt3 classes and methods as deprecated, to allow developers to quickly identify spots where Qt3Support is still in use. The patch has been written by Lorenzo Berni (I'm submitting it on his behalf). -- Giovanni Bajo Develer S.r.l. http

[PyQt] QPolygonF::data() method

2008-09-25 Thread Giovanni Bajo
. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt4 and Python 3.0

2008-10-04 Thread Giovanni Bajo
, since some people will not be willing to pay an average 20% performance hit of Python 3.0 compared to Python 2.6. I suggest you to document it on the website to reduce the number of incoming questions in the next few years :) -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Internationalization and PyQt

2008-10-05 Thread Giovanni Bajo
the documentation). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Re: PyQt4 and Python 3.0

2008-10-06 Thread Giovanni Bajo
time to rewrite doesn't seem a good path forward to me. If there's agreement that we need to break backward compatibility on PyQt (by changing the way QString or QVariant are mapped), I think it's better to do so *independently* from any other changes (eg: Python 3). -- Giovanni Bajo Develer

Re: [PyQt] Re: PyQt4 and Python 3.0

2008-10-06 Thread Giovanni Bajo
On 10/6/2008 8:42 PM, Phil Thompson wrote: On Mon, 06 Oct 2008 19:42:26 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: On 10/6/2008 7:27 PM, Joshua Kugler wrote: Phil Thompson wrote: On Fri, 3 Oct 2008 17:11:19 +0200, Detlev Offenbach [EMAIL PROTECTED] wrote: Hi, will there be PyQt4 support

Re: [PyQt] Re: PyQt4 and Python 3.0

2008-10-06 Thread Giovanni Bajo
On lun, 2008-10-06 at 20:19 +0100, Phil Thompson wrote: On Mon, 06 Oct 2008 21:10:44 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: On 10/6/2008 9:04 PM, Phil Thompson wrote: On Mon, 06 Oct 2008 20:52:50 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: On 10/6/2008 8:42 PM, Phil Thompson

Re: [PyQt] Re: PyQt4 and Python 3.0

2008-10-07 Thread Giovanni Bajo
On 10/7/2008 7:07 AM, Phil Thompson wrote: On Mon, 6 Oct 2008 21:30:49 -0500, Arthur Pemberton [EMAIL PROTECTED] wrote: On Mon, Oct 6, 2008 at 7:33 PM, Doug Bell [EMAIL PROTECTED] wrote: Giovanni Bajo wrote: On 10/6/2008 7:27 PM, Joshua Kugler wrote: Phil Thompson wrote: On Fri, 3 Oct 2008

Re: [PyQt] Re: PyQt4 and Python 3.0

2008-10-07 Thread Giovanni Bajo
. They changed SCM, build system and Qt major version at the same time, with no option of having releases inbetween. Ask them if they'd ever do that again. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] PyQt4 and Python 3.0

2008-10-07 Thread Giovanni Bajo
://www.develer.com/oss/PyQt3Support -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] More recent g++ slows build time immensely

2008-10-20 Thread Giovanni Bajo
isn't packaged yet in Ubuntu) or downgrade to GCC 4.1 (which is packaged -- but then you have to manually modify the symlink /usr/bin/gcc to point to the correct version). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing list

Re: [PyQt] PyQt Development Roadmap Published

2008-10-20 Thread Giovanni Bajo
again for discussing this with us! -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] strange dialog slowness

2008-10-21 Thread Giovanni Bajo
to trace it; but first I wondered if anyone else had hit the problem and maybe had a fix they could suggest? Before rebuilding the world, I would try to attach strace (or even ltrace) to the running process and see what it's doing in those 14 seconds. -- Giovanni Bajo Develer S.r.l. http

Re: [PyQt] Re: More recent g++ slows build time immensely

2008-10-31 Thread Giovanni Bajo
On 10/31/2008 12:57 PM, Adeodato Simó wrote: * Giovanni Bajo [Mon, 27 Oct 2008 19:28:24 +0100]: On 10/27/2008 4:52 PM, Jim Crowell wrote: Downgrading gcc and g++ from 4.2 to 4.1 decreased build time from about 15 minutes to 13.6 seconds. BTW, you can use the following commands to configure

Re: [PyQt] Next PyQt, SIP, QScintilla Releases

2008-11-06 Thread Giovanni Bajo
the correct thing, and it even works when you pass it back to the constructor). tuple(QKeySequence()) segfaults, but IIRC you have already fixed this. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] Next PyQt, SIP, QScintilla Releases

2008-11-07 Thread Giovanni Bajo
arithmetic in Python). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ConvertToSubClass problem

2008-11-17 Thread Giovanni Bajo
. Any guess on what exactly is the bug? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Re: ConvertToSubClass problem

2008-11-18 Thread Giovanni Bajo
On Tue, 2008-11-18 at 12:17 +0100, Matteo Bertini wrote: On 18-11-2008 1:12, Giovanni Bajo wrote: Hi Phil, this patch: 2007/02/25 0:19:29 phil Included Matt Newell's fix for making sure that a sub-class convertor returns the most specific type available. causes problem

[PyQt] Re: ConvertToSubClass problem

2008-11-18 Thread Giovanni Bajo
On Tue, 2008-11-18 at 09:27 +, Phil Thompson wrote: On Tue, 18 Nov 2008 01:12:49 +0100, Giovanni Bajo [EMAIL PROTECTED] wrote: Hi Phil, this patch: 2007/02/25 0:19:29 phil Included Matt Newell's fix for making sure that a sub-class convertor returns the most specific type

[PyQt] Re: ConvertToSubClass problem

2008-11-18 Thread Giovanni Bajo
On Tue, 2008-11-18 at 13:22 +, Phil Thompson wrote: On Tue, 18 Nov 2008 14:06:10 +0100, Giovanni Bajo [EMAIL PROTECTED] wrote: On Tue, 2008-11-18 at 09:27 +, Phil Thompson wrote: On Tue, 18 Nov 2008 01:12:49 +0100, Giovanni Bajo [EMAIL PROTECTED] wrote: Hi Phil

Re: [PyQt] PyInstaller and files

2008-11-19 Thread Giovanni Bajo
the packaged executable. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] segfault : interpreting back trace

2008-11-24 Thread Giovanni Bajo
sure to have read and understood all the requirements for multi-thread programming with Qt. Specifically, you can't directly touch/modify/read *any* widget from the secondary thread. You should instead post events to the main thread, or use the asynchronous signal/slot mechanism. -- Giovanni Bajo

Re: [PyQt] QGraphisView performance

2008-11-24 Thread Giovanni Bajo
or native) to the OpenGL one. I think this can be achieved by manually setting a QGLWidget as viewport, or something like that. Again, in Qt 4.5 this is just a matter of passing -graphicssystem opengl on the command line, which makes it easier to play with. -- Giovanni Bajo Develer S.r.l. http

Re: [PyQt] memory corruption

2008-11-25 Thread Giovanni Bajo
, but you might have a problem with what you do from within the thread. (BTW: you don't need threads to use multiple sockets; that's a perfect example of when you should not be using threads in the first place) -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] subprocess.Popen() crash after QApplication() ?

2008-12-02 Thread Giovanni Bajo
On 12/2/2008 6:43 PM, Denis wrote: Folks, has anyone else seen this or is it me ? Thanks, cheers Oh yes: subprocess is absolutely useless on Mac with threading programs (QApplication probably creates a thread behind the scenes): http://bugs.python.org/issue1068268 -- Giovanni Bajo

Re: [PyQt] QThread problem

2008-12-08 Thread Giovanni Bajo
On lun, 2008-12-08 at 01:53 +0100, Sergio Jovani wrote: I'm developing a downloads application and I have created a QThread for that reason. You don't need threads to download files with PyQt. In fact, it's far easier without. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] QThread problem

2008-12-08 Thread Giovanni Bajo
. Hi, I would like know it! Thanks. Look at the examples. It's the normal way of using Qt: you start a download and a signal will be emitted when it's done; at a lower level, you get a signal when any packet arrives. You never need to use threads to do networking. -- Giovanni Bajo Develer S.r.l

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Giovanni Bajo
about. ... which is exactly why the star-import works perfectly. [PS: in case it's not clear, I'm -1 on the Qt.Application proposal; IMO, the official QtCore.QCoreApplication and the short-n-fast star-imported QCoreApplication already cover enough tastes] -- Giovanni Bajo Develer S.r.l. http

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Giovanni Bajo
of populating a different namespace. This is absolutely implicit and counter-intuitive, and has no equivalent in the standard library nor any external library I can think of. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-13 Thread Giovanni Bajo
On ven, 2008-12-12 at 22:57 +, Paul A. Giannaros wrote: On Fri, Dec 12, 2008 at 10:28 PM, Giovanni Bajo ra...@develer.com wrote: On 12/12/2008 11:18 PM, Paul A. Giannaros wrote: On Fri, Dec 12, 2008 at 6:27 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Fri, 12 Dec 2008

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-14 Thread Giovanni Bajo
so that those symbols simply don't get imported with star-imports. Then, if one wants to access them, it has to use the other syntax (QtCore.hex). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Giovanni Bajo
the symbol is coming from. Appending the underscore to those symbols is a perfect fix IMO. I don't see why people that don't use star-imports in the first place should care about it at all. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Giovanni Bajo
that QListBox or QVariant is part of PyQt4 because it's not prefixed by QtGui. or QtCore.? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problem with apps build with Py2exe

2009-01-09 Thread Giovanni Bajo
is wrong. Problem may be solved by reinstalling the script. It works for some users, and for some don't (plus it's no install run.exe made from run.py). Any ideas why Windows makes such problems? :) Are you using Python 2.6? -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Threads with PyQt. Qt's or Python's?

2009-01-19 Thread Giovanni Bajo
On 1/19/2009 4:36 PM, Christoph Burgmer wrote: Am Monday, 19. January 2009 schrieb Giovanni Bajo: On 1/19/2009 3:13 PM, eliben wrote: I've seen various references to this issue before, but nothing to fully address it as I'd expect. Can you comment on the pros and cons of using

Re: [PyQt] Threads with PyQt. Qt's or Python's?

2009-01-19 Thread Giovanni Bajo
not a common error. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Threads with PyQt. Qt's or Python's?

2009-01-19 Thread Giovanni Bajo
the code with Qt4. This is the correct link to get a broad overview: http://doc.trolltech.com/4.4/threads.html -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: [PyQt] Threads with PyQt. Qt's or Python's?

2009-01-20 Thread Giovanni Bajo
On mar, 2009-01-20 at 12:08 +0800, Christoph Burgmer wrote: Am Tuesday, 20. January 2009 schrieb Giovanni Bajo: On 1/19/2009 4:36 PM, Christoph Burgmer wrote: [...] I am doing a QCoreApplication.postEvent() out of run() from a threading.Thread class without any

Re: [PyQt] Re: Licensing for PyQt?

2009-01-20 Thread Giovanni Bajo
). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Roadmap suggestion: raise exception when connect() fails

2009-01-21 Thread Giovanni Bajo
PyQt_PyObject, short-circuit signals, etc.). I would of course recommend to do the same for pyqtBoundSignal.connect(). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: [PyQt] Dialogue box with hyperlink

2009-01-27 Thread Giovanni Bajo
a QLabel with qt /qt tags in the string and then using the standard html for creating a hyperlink: Uhm, what's this qt tag? I never heard of it, and it's not required for your example to work. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] How to handle unix signals in PyQt

2009-01-28 Thread Giovanni Bajo
the function documented. Do you really need full signal support or where you trying to do simple stuff like handling CTRL+C? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] Threads with PyQt. Qt's or Python's?

2009-02-03 Thread Giovanni Bajo
On 2/3/2009 5:17 PM, Frédéric wrote: On mardi 03 février 2009, Giovanni Bajo wrote: Notice that it's easy to deadlock, if you don't pay enough attention (and even if you do ;). Why do you say it is easy to deadlock? Do you mean that Qt can do unexpected things? No: I meant

Re: [PyQt] Threads with PyQt. Qt's or Python's?

2009-02-03 Thread Giovanni Bajo
On 2/3/2009 12:24 PM, Frédéric wrote: Le 3/2/2009, Giovanni Bajo ra...@develer.com a écrit: The documentation says that a QPainter can only paint on QImage, QPrinter and QPicture, but not on QWidget and QPixmap (it seems that painting on QGraphicsItem works fine, as I don't have warnings; can

Re: [PyQt] Linking Qt statically into a project using embedded Python and Sip/PyQt

2009-02-04 Thread Giovanni Bajo
for SIP and all PyQt modules you need in your application. This must be done before you initialize the python interpreter with Py_Initialize(). It should also work if you recompile a single dynamic library (python.so) with PyQt and SIP included within as builting modules. -- Giovanni Bajo Develer

Re: [PyQt] Windows/OS X installers for PyQt4 apps

2009-02-07 Thread Giovanni Bajo
, but people seem to have success with py2app PyInstaller SVN trunk is able to package PyQt applications under Mac as well, though it doesn't build a bundle yet (.app). Work is in progress as we speak. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Windows/OS X installers for PyQt4 apps

2009-02-07 Thread Giovanni Bajo
. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Windows/OS X installers for PyQt4 apps

2009-02-07 Thread Giovanni Bajo
On sab, 2009-02-07 at 13:09 +0100, Frédéric wrote: On samedi 07 février 2009, Giovanni Bajo wrote: Does it mean you can package a Windows .exe from a linux system? Yes, PyInstaller SVN trunk can do that as well. It's undocumented at the moment, but it mostly works. To make it work, you

Re: [PyQt] LGPL license.

2009-02-11 Thread Giovanni Bajo
. I can't understand why it wouldn't be a suitable solution for his software. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] LGPL license.

2009-02-11 Thread Giovanni Bajo
the business potential user base of PyQt. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] LGPL license.

2009-02-11 Thread Giovanni Bajo
On 2/11/2009 4:09 PM, Ville M. Vainio wrote: On Wed, Feb 11, 2009 at 3:30 PM, Giovanni Bajo ra...@develer.com wrote: I doubt that any company on earth would save £350 and change programming language. This kind of decision is made by amateur programmers that just want to play around with Qt

Re: [PyQt] i18n

2009-02-11 Thread Giovanni Bajo
of QtCore.QCoreApplication.translate :) (OK I'm cheating: I'm not taking into account that I can use 'qApp' because of star-imports). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] i18n

2009-02-11 Thread Giovanni Bajo
. I don't see how redefining tr() in the base class is going to help. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] i18n

2009-02-11 Thread Giovanni Bajo
of the function and thus its clients. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] i18n

2009-02-11 Thread Giovanni Bajo
On 2/11/2009 6:49 PM, David Boddie wrote: On Wednesday 11 February 2009, Giovanni Bajo wrote: On 2/11/2009 6:24 PM, David Boddie wrote: To avoid problems, I have previously defined a helper method in subclasses where I thought it was necessary, like this: class ActionEditorWidget(QLabel

Re: [PyQt] i18n

2009-02-11 Thread Giovanni Bajo
a point here. Converting the whole application to another toolkit would probably be much harder in the first place. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: [PyQt] i18n

2009-02-11 Thread Giovanni Bajo
translation? Do you happen to know a single open source project that does this? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] LGPL license.

2009-02-12 Thread Giovanni Bajo
On 2/12/2009 12:44 PM, Sundance wrote: Giovanni Bajo wrote: You're basically restating your previous point, without debating mine. The language choice affects companies much more than £350 / programmer. Hi Giovanni, hi Phil, hi everybody, Giovanni, I'm... a bit uncomfortable writing

Re: [PyQt] Scripting framework and licensing

2009-02-19 Thread Giovanni Bajo
and all). If you limit it to a few builtins and maybe add more of them to the builtin namespace, I think it's perfectly fine even with the commercial version. http://code.activestate.com/recipes/496746/ -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] QMovie not loading gif from resource after py2exe

2009-02-21 Thread Giovanni Bajo
://pyinstaller.python-hosting.com/wiki/PyQtPluginsWorkaround until the support for automatically shipping plugins is completed. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] PyQt4 and Qt plugins (imageformats, etc.) fully supported now

2009-02-23 Thread Giovanni Bajo
your multi-platform bundles of PyQt applications without having to take care of plugins manually. NOTE: you will need to regenerate your .spec files for this new feature to work. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing

Re: [PyQt] Using different versions of compiled PyQt under windows

2009-02-24 Thread Giovanni Bajo
perfectly possible to have multiple version of PyQt on your system. Just install them into different directories and use PYTHONPATH to pick up the correct one. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] Packaging a PyQt app in GNU/Linux

2009-03-01 Thread Giovanni Bajo
). If instead you want to distribute your application as a binary static package, try PyInstaller. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

Re: [PyQt] QCoreApplication::exec: The event loop is already running

2009-03-02 Thread Giovanni Bajo
: app = QApplication([]) w = MySuperMainWidget() w.show() app.exec_() just add a function like this: def entry(): global w w = MySuperMainWidget() w.show() and you're done with it. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Giovanni Bajo
from PyQt4.QtCore import * ? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

RE: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Giovanni Bajo
is already imported. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] findChildren(): default for type?

2009-03-07 Thread Giovanni Bajo
believe this could be done in a fully backward compatible way, right? If so, we can prepare a patch. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo

Re: [PyQt] findChildren(): default for type?

2009-03-08 Thread Giovanni Bajo
On sab, 2009-03-07 at 17:39 +, Phil Thompson wrote: On Sat, 07 Mar 2009 18:11:30 +0100, Giovanni Bajo ra...@develer.com wrote: Hello, any reason why findChild() / findChildren() don't support a default for the type argument (which would be QObject of course) like they do in C

Re: [PyQt] Documentation Style (Was: PyQt4 feature request)

2009-03-09 Thread Giovanni Bajo
, to start typing setLab and see all the matches in realtime and quickly find the correct method within whatever class it happens to be inside. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] Re: distribute pyqt application to windows users

2009-03-09 Thread Giovanni Bajo
to download the QT libraries, SIP and PyQT by themselves, or there is a way to avoid them to do it? Does PyInstaller help? Ok, I stop. Enough questions :) Thanks for any help, Giovanni http://www.pyinstaller.org -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] subprocess in PyQt

2009-03-15 Thread Giovanni Bajo
), shell=False) -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Best way to pass commands between threads?

2009-03-17 Thread Giovanni Bajo
it to use a QThread. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] How-to: Deploying PyQt applications on Windows and Mac OS X

2009-03-19 Thread Giovanni Bajo
for all platforms? And, besides, it also handles PyQt plugins automagically (include them into the distribution and setup the Qt plugin paths accordingly). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

[PyQt] PyQt/SIP snapshots

2009-03-28 Thread Giovanni Bajo
Hello, is this a good moment to test SIP/PyQt snapshots against Qt 4.5.0? -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt/SIP snapshots

2009-03-28 Thread Giovanni Bajo
On Sat, 28 Mar 2009 21:16:31 +0100, David Boddie da...@boddie.org.uk wrote: On Sat Mar 28 12:57:12 GMT 2009, Phil Thompson wrote: On Sat, 28 Mar 2009 13:46:48 +0100, Giovanni Bajo rasky at develer.com wrote: is this a good moment to test SIP/PyQt snapshots against Qt 4.5.0? Yes. I'm

Re: [PyQt] Python v3 Status

2009-04-04 Thread Giovanni Bajo
In this case, you should report this problem to Python developers with a testcase, so that they can fix it. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

Re: [PyQt] Global Interpreter Lock

2009-04-10 Thread Giovanni Bajo
the GIL locked and thus block all other threads at the same time. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] implications of running PyQt 4.4.x with Qt 4.5?

2009-04-22 Thread Giovanni Bajo
virtuals - an older PyQt doesn't know to call them. There are some cases of that in Qt v4.5. I'm not sure I follow. Is that because the sip-generated code hardcodes the specific class to be used for each virtual function? -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-27 Thread Giovanni Bajo
) clipboard = app.clipboard() clipboard.setText('The text that must be copied...') event = QtCore.QEvent(QtCore.QEvent.Clipboard) app.sendEvent(clipboard, event) It doesn't work for me on Linux. Should it? -- Giovanni Bajo Develer S.r.l. http

Re: [PyQt] python signals and javascript

2009-05-15 Thread Giovanni Bajo
for the introspection to work (the javascript layer uses the introspection to find out which signals are available). See: http://www.riverbankcomputing.co.uk/software/pyqt/roadmap/index.html#pythonic-connections which I think is already implemented in latest snapshots. -- Giovanni Bajo Develer S.r.l. http

Re: [PyQt] Static Qt/PyQt on Mac OS X

2009-06-03 Thread Giovanni Bajo
for you. If you get PyInstaller SVN trunk, you should get working Mac OSX support; the only issue is that it does not create a bundle yet (but a patch for this will be merged later this week). -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt

Re: [PyQt] QSettings.registerFormat unavailable in PyQt4?

2009-06-05 Thread Giovanni Bajo
On Sat, 6 Jun 2009 01:19:39 +0200, David Boddie da...@boddie.org.uk wrote: On Fri Jun 5 19:25:01 BST 2009, Giovanni Bajo wrote: On 6/4/2009 10:18 PM, Phil Thompson wrote: It can't be wrapped because of the nature of the function pointer arguments - bad API design. Is it the same

Re: [PyQt] QSettings.registerFormat unavailable in PyQt4?

2009-06-06 Thread Giovanni Bajo
On Sat, 06 Jun 2009 11:02:18 +0100, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 06 Jun 2009 02:56:55 +0200, Giovanni Bajo ra...@develer.com wrote: On Sat, 6 Jun 2009 01:19:39 +0200, David Boddie da...@boddie.org.uk wrote: On Fri Jun 5 19:25:01 BST 2009, Giovanni Bajo wrote

Re: [PyQt] How about a mailing-list dedicated to Riverbank announces ?

2009-06-15 Thread Giovanni Bajo
really need all PyQt discussions Bes regards, Jul. ... or the news page could feature a RSS. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

[PyQt] Function pointers and SIP

2009-06-18 Thread Giovanni Bajo
Hi Phil, given a C++ object where you can register callbacks such as: void registerCallback(void (*cb)(void*), void* user_data); or void registerCallback(std::tr1::functionvoid (void) cb); how would you wrap them in SIP? Is there some code in PyQt that I can look at? -- Giovanni

<    1   2   3   4   5   6   >