[PyKDE] DLL problem with Qt/PyQt

2005-10-28 Thread Eike.Hoffmann
Hello everybody, I have a problem with Qt + PyQt + Python 2.3 on windows. I successfully compiled Qt 3.3, Sip and PyQt with MinGW (also converted python23.dll to libpython23.a with dlltool). Everything compiled and installed without problems. But when I try to start a PyQt program (for example

[PyKDE] Method wrappers not shared

2005-10-28 Thread Giovanni Bajo
Phil: import qt a = qt.QWidget.acceptDrops b = qt.QWidget.acceptDrops a is b False id(a), id(b) (9674384, 9670704) id(qt.QWidget.acceptDrops) 9831568 id(qt.QWidget.acceptDrops) 9831568 It looks like these method wrappers are recreated each time I need them (I believe it has to do with the

[PyKDE] QImage to QPixmap conversion in a list comprehension

2005-10-28 Thread Alexander Borghgraef
Hi all, I'm trying to convert a list of scipy arrays to a list of QPixmap objects. Scipy contains a function toimage which converts an array (matrix actually) to a QImage object so my naive implementation was import scipy from qt import * # imgList is a list of scipy arrays pixmapList = [

[PyKDE] Re: Method wrappers not shared

2005-10-28 Thread Phil Thompson
On Friday 28 October 2005 3:05 pm, Giovanni Bajo wrote: Phil: import qt a = qt.QWidget.acceptDrops b = qt.QWidget.acceptDrops a is b False id(a), id(b) (9674384, 9670704) id(qt.QWidget.acceptDrops) 9831568 id(qt.QWidget.acceptDrops) 9831568 It looks like these method

Re: [PyKDE] QImage to QPixmap conversion in a list comprehension

2005-10-28 Thread Patrick K. O'Brien
Phil Thompson wrote: On Friday 28 October 2005 3:15 pm, Alexander Borghgraef wrote: Hi all, I'm trying to convert a list of scipy arrays to a list of QPixmap objects. Scipy contains a function toimage which converts an array (matrix actually) to a QImage object so my naive implementation was