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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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

[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] 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

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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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

[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

[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

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

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] 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] 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] 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] 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] 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] 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] 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

[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

[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] 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

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] 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] 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

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] 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

[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] 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

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] 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] 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] Memory leak

2008-07-04 Thread Giovanni Bajo
On Fri, 2008-07-04 at 10:48 +0200, Sundance wrote: Giovanni Bajo wrote: The assert triggers, meaning that the object of type MyWidget is not released. Hi Giovanni, Yes, this is a known bug: SIP keeps a hard reference to bound methods in its method cache (the bound method being

[PyQt] Memory leak

2008-07-03 Thread Giovanni Bajo
= QVBoxLayout(None) L.addWidget(ws) L.activate() del L del ws import gc gc.collect() assert wr() is None The assert triggers, meaning that the object of type MyWidget is not released. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] References returned from C++

2008-06-22 Thread Giovanni Bajo
the SIP user choose. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] (no subject)

2008-06-17 Thread Giovanni Bajo
: No such file or directory make[1]: *** [sipQtGuicmodule.o] Error 1 make: *** [install] Error 2 This happens when you try to compile PyQt 4.4 against Qt 4.3 (and it's a bug that's already fixed in PyQt snapshots). -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Python and smartpointers

2008-06-13 Thread Giovanni Bajo
; maybe Phil will chime in. -- 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: /NewThread/, and Python stack in Visual Studio

2008-06-12 Thread Giovanni Bajo
On 6/12/2008 6:44 PM, Kevin Watters wrote: Anyone lucky enough to be using Visual Studio for their SIP projects have any advice on the Python stack trace issue? Not that I know of, but please let me know if you find out something. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Getting rid of an object

2008-06-08 Thread Giovanni Bajo
use .deleteLater() (a QObject method) for deferred deletion. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] operator new/delete and PyMem_New/Del

2008-06-04 Thread Giovanni Bajo
, void *a) { return ::operator delete(p, a); } }; You just inherit the small objects from this class and you're done with. If you do many allocations, this should be a win over the standard new/delete. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Can't create a QImage?

2008-06-01 Thread Giovanni Bajo
stdin, line 1, in module TypeError: argument 2 of QImage() has an invalid type img = QImage(QSize(10,10), QImage.Format_RGB32) img.width() 10 -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com

[PyQt] Re: New bug in SIP

2008-05-30 Thread Giovanni Bajo
On 5/30/2008 12:32 PM, Phil Thompson wrote: On Wednesday 28 May 2008 3:39:11 pm Giovanni Bajo wrote: Hi Phil, I found a new bug in SIP (it used to work with a SIP from September 2007). If you declare a class with a single constructor, you write %MethodCode for that constructor, and you make

Re: [PyQt] QVariant and Python list

2008-05-30 Thread Giovanni Bajo
, for instance, which can contain very large documents. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] New bug in SIP

2008-05-28 Thread Giovanni Bajo
== PARSE_OK (at line 7173) instead of pstate == PARSE_OK. Thanks! -- 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: PyQt 4.4.2 GPL installer / missing DLL

2008-05-24 Thread Giovanni Bajo
to be a problem here. It's the kind of problems that re-surfaces now that Qt's .DLLs are separated from .PYDs. In fact, till now I hadn't realized this was a problem even if you installed Qt's .DLLs next to PyQt's .PYDs, but that's the way Windows works... -- Giovanni Bajo Develer S.r.l. http

Re: [PyQt] Updating the windows installer for Qt 4.4

2008-05-14 Thread Giovanni Bajo
to build it as a single static _qt.pyd or with .pyd + Qt's .dll files. The former gives you a much smaller installer file which might be a feature; the latter gives more flexibility to final users. Either way it's fine. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Updating the windows installer for Qt 4.4

2008-05-13 Thread Giovanni Bajo
++ programmers. I personally saw a *large* increase of interest in Python Windows programmers since the consolidated installer was released. It would be a shame to see a regression there. I really hope you reconsider your choice. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Updating the windows installer for Qt 4.4

2008-05-13 Thread Giovanni Bajo
On 5/13/2008 1:19 PM, Phil Thompson wrote: On Tuesday 13 May 2008 11:59:48 Giovanni Bajo wrote: On 5/13/2008 10:24 AM, Phil Thompson wrote: On Tuesday 13 May 2008 09:16:59 you wrote: Hi Phil, First we will install Qt/MinGW and then your installer ? And we have to do this for every machine we

Re: [PyQt] Pixel pushing performance

2008-05-07 Thread Giovanni Bajo
still fill that numpy array one element at a time, nothing changes. -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Q(Core)Application.exec_() is not interruptable

2008-05-01 Thread Giovanni Bajo
() (the C++ function), Qt doesn't know how to cooperate with Python for CTRL+C, and this is why it does not work. I don't think there's a good way to make it work; you may want to see if you can handle it through a global event filter. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] Updated PyQt Release Plans

2008-04-30 Thread Giovanni Bajo
the QObject dies, the Python object is flagged as invalid, and any usage of it results in a RuntimeError; moreover, you can check for this invalid condition through sip.isdeleted(). Thus, I'm not sure what you are speaking of. -- Giovanni Bajo Develer S.r.l. http://www.develer.com

[PyQt] SIP: template enhancements?

2008-04-24 Thread Giovanni Bajo
Hi Phil, can you please elaborate about this: 2008/04/15 19:54:04 phil Various template related bug fixes and enhancements need by PyQt's Phonon module. Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt

Re: [PyQt] PyQt's Undo/Redo framework - A Very Short Intro

2008-04-24 Thread Giovanni Bajo
anything more than it would be done one opcode later when the method exits and its locals are destroyed. In fact, calling takeItem() without binding its return value to a name achieves the same effect and it is clearer. Thanks again for a nice article! -- Giovanni Bajo Develer S.r.l. http

Re: [partially solved] Re: [PyQt] KProcess setUsePty not there...

2008-04-13 Thread Giovanni Bajo
= useptyfix.MySetUsePty --- -- Giovanni Bajo Develer S.r.l. http://www.develer.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

<    1   2   3   4   5   6   >