Re: [PyQt] PyQt should not ignore functools.partial signature

2011-10-14 Thread Luper Rouch
2011/10/13 Phil Thompson > On Wed, 12 Oct 2011 15:57:17 +0200, Luper Rouch > wrote: > > PyQt seems to ignore the signature of functools.partial objects (the > 'args' > > and 'keywords' attributes [1]), when connecting a callable. Here is an > > exa

[PyQt] PyQt should not ignore functools.partial signature

2011-10-12 Thread Luper Rouch
e. It would be nice if PyQt did some additional checks when connecting to a functools.partial object. [1] http://docs.python.org/library/functools.html#partial-objects [2] http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/old_style_signals_slots.html#pyqt-slots-and-qt-slots -- Luper Rouch

Re: [PyQt] Building SIP on MinGW : problem at "make install"

2010-06-16 Thread luper rouch
2010/6/17 luper rouch : > 2010/6/17 luper rouch : >> Hi, >> >> There seems to be a problem with the makefile generation of SIP for >> the win32-g++ target. The compilation works fine, but the install >> phase uses DOS commands instead of the POSIX commands suppli

Re: [PyQt] Building SIP on MinGW : problem at "make install"

2010-06-16 Thread luper rouch
2010/6/17 luper rouch : > Hi, > > There seems to be a problem with the makefile generation of SIP for > the win32-g++ target. The compilation works fine, but the install > phase uses DOS commands instead of the POSIX commands supplied by > MinGW (e.g. del and copy instead of rm

[PyQt] Building SIP on MinGW : problem at "make install"

2010-06-16 Thread luper rouch
Hi, There seems to be a problem with the makefile generation of SIP for the win32-g++ target. The compilation works fine, but the install phase uses DOS commands instead of the POSIX commands supplied by MinGW (e.g. del and copy instead of rm and cp). Here is the output of make install: $ make i

[PyQt] Fix: layoutStretch property is not compiled by pyuic4

2010-01-27 Thread luper rouch
The layoutStretch property of QHBoxLayout and QVBoxLayout in designer should be compiled to layout.setStretch() calls. The code to do this is already present in PyQt4.uic.uiparser, but never triggered because of an error in the types hierarchies defined in PyQt4.uic.Compiler.qtproxies (QHBoxLayout

[PyQt] QModelIndex.internalPointer() is a weak reference ?

2009-01-18 Thread Luper Rouch
Hi, I have to maintain references to the objects passed to QModelIndex or I get segfaults (and all kinds of other weird results) when accessing them via internalPointer(), which makes me either think the reference counting is broken or that indices store weak references... Is this intended ?

Re: [PyQt] Deploying a PyQt4 application on Windows using py2exe

2007-03-22 Thread Luper Rouch
Tony Cappellini a écrit : from distutils.core import setup import py2exe setup(windows=[{"script":"main.pyw"}], options={"py2exe": {"includes":["sip"]}} ) python setup.py py2exe Well all I can say is that an equivalent setup works for me, with these versions : python-2.5 py2exe-0.6.5 PyQt-4.

Re: [PyQt] Catching python exceptions

2007-03-22 Thread Luper Rouch
Joseph Rawson a écrit : On Thursday 22 March 2007 16:47, Luper Rouch wrote: Hi, What is the proper way to add a global exceptions catcher to a QApplication, for example to bring a bug report dialog when an exception reaches the main event loop ? I guess I have to make my own event loop but

[PyQt] Catching python exceptions

2007-03-22 Thread Luper Rouch
Hi, What is the proper way to add a global exceptions catcher to a QApplication, for example to bring a bug report dialog when an exception reaches the main event loop ? I guess I have to make my own event loop but my attempts failed miserably, any pointers to an example ? Thanks, Luper

Re: [PyQt] Deploying a PyQt4 application on Windows using py2exe

2007-03-22 Thread Luper Rouch
Tony Cappellini a écrit : I've created an exe using Py2exe. I've tried to use Doug Bells PyQt4-based rpcalc and convertall applications as a guide. When I run my app, it has a problem resolving the PyQt4 imports. from PyQt4.QtCore import * ImportError: No module named PyQt4.QtCore These are

[PyKDE] copy.copy on QObject instances ?

2006-10-20 Thread Luper Rouch
Hi, Is there a simple way to add support for copy to QObject-derived classes ? Luper Rouch ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] Helper class with better QObject.disconnect support

2006-10-18 Thread Luper Rouch
Hi all, I thought this may be usefull, it's a helper class that adds the possibility to disconnect SIGNAL to SIGNAL connections, as well as a disconnectAll method. Also included a simple unit test, because I don't know if isSignal() will work forever ... Hope it helps, L