Re: [PyKDE] Windows systray application

2005-06-30 Thread basse
Rob Knapp kirjoitti viestissään (lähetysaika tiistai, 28. kesäkuuta 2005 17:26): AFAIK, QT doesn't currently have a class that allows this. You will need to use the win32api call SHELL_NOTIFYICON to create the icon, and then I used the winEvent (I think, it's been about 2 years) to capture

Re: [PyKDE] overloading events with qt designer and pyqt

2005-06-30 Thread Frank Stüss
thanks for all advice. As mentioned before in this list by another smart one, a conveniend way was this: in designer i generate a custom widget with class QHBox and policy 'expanding' and then use it as a placeholder. My final signal/event catching widget is constructed 'by hand' as child of

Re: [PyKDE] Typecasting problems with PyQt embedded in Scribus

2005-06-30 Thread Phil Thompson
On Thursday 30 June 2005 1:16 am, Henning Schröder wrote: Hi! Scribus is a free DTP application which is coded in C++ and Qt and provides scripting with Python. A Python script can import the qt module and access the data from the running application as far as it is reachable with the

Re: [PyKDE] Handling exceptions in SIP

2005-06-30 Thread Denis S. Otkidach
On Wed, 29 Jun 2005 15:59:08 +0100 Phil Thompson [EMAIL PROTECTED] wrote: sip command passes without error, but I have an error when linking: $OFILES in Makefile contains sipMyModuleMyException.o, while there is no corresponding .cpp file generated. BTW, when I use throw specifier in

Re: [PyKDE] Latest PyKDE Snapshot

2005-06-30 Thread Stephan Hermann
Hi, what are the changes to last snapshot? Anyway, the changelog is not updated, and it's hard to determine the changes at all... can someone summarize the changes beginning from: [EMAIL PROTECTED]:~/kde/pykde$ less PyKDE-snapshot20050628/ChangeLog 2004/08/25 16:44:00 jim Released 3.11.3;

[PyKDE] Re: Memory leak segfault with deleteLater

2005-06-30 Thread Giovanni Bajo
Phil Thompson [EMAIL PROTECTED] wrote: ignoring the extra reference to wrappers of objects owned by C++. Thanks, I just verified that this fixes my problem! I've had to back this out - it's the wrong fix and breaks other things. Okie dokie. Is a different fix planned? -- Giovanni Bajo

Re: [PyKDE] Re: Memory leak segfault with deleteLater

2005-06-30 Thread Phil Thompson
On Thursday 30 June 2005 12:34 pm, Giovanni Bajo wrote: Phil Thompson [EMAIL PROTECTED] wrote: ignoring the extra reference to wrappers of objects owned by C++. Thanks, I just verified that this fixes my problem! I've had to back this out - it's the wrong fix and breaks other things.

[PyKDE] Segmentation fault with the latest SIP snapshots

2005-06-30 Thread Ulrich Berning
Using QTimer.singleShot() causes a segmentation fault with sip-snapshot-20050626 and sip-snapshot-20050629. With sip-snapshot-20050623, it worked. See the example code below. Ulli import sys from qt import * class MyWidget(QWidget): def

Re: [PyKDE] Segmentation fault with the latest SIP snapshots

2005-06-30 Thread Ulrich Berning
Ulrich Berning schrieb: Using QTimer.singleShot() causes a segmentation fault with sip-snapshot-20050626 and sip-snapshot-20050629. With sip-snapshot-20050623, it worked. See the example code below. Ulli Oops, mozilla has shuffled the whitespaces a little bit, I hope you can still read the

[PyKDE] PyKDE without KApplication

2005-06-30 Thread Mike Tammerman
Is there a way to instantiate pykde classes using QApplication instead KApplication. Thanks. Mike ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyKDE without KApplication

2005-06-30 Thread Andreas Pakulat
On 30.Jun 2005 - 17:33:34, Mike Tammerman wrote: Is there a way to instantiate pykde classes using QApplication instead KApplication. I think so, at least most. For instance KMainWindow is derived from QMainWindow and thus it should be possible to use QApplication.setMainWidget Instead of

Re: [PyKDE] Segmentation fault with the latest SIP snapshots

2005-06-30 Thread Phil Thompson
On Thursday 30 June 2005 2:10 pm, Ulrich Berning wrote: Using QTimer.singleShot() causes a segmentation fault with sip-snapshot-20050626 and sip-snapshot-20050629. With sip-snapshot-20050623, it worked. See the example code below. Will be fixed in tonight's SIP snapshot. Thanks, Phil

Re: [PyKDE] PyKDE without KApplication

2005-06-30 Thread Mike Tammerman
Mostly it creates a segfault, the basic one is --- from qt import * from kdeprint import * import sys a = QApplication(sys.argv) KPrinter() --- Mike On 6/30/05, Andreas Pakulat [EMAIL PROTECTED] wrote: On 30.Jun 2005 - 17:33:34, Mike Tammerman wrote: Is there a way to instantiate pykde

Re: [PyKDE] Handling exceptions in SIP

2005-06-30 Thread Phil Thompson
On Thursday 30 June 2005 10:25 am, Denis S. Otkidach wrote: On Wed, 29 Jun 2005 15:59:08 +0100 Phil Thompson [EMAIL PROTECTED] wrote: sip command passes without error, but I have an error when linking: $OFILES in Makefile contains sipMyModuleMyException.o, while there is no

Re: [PyKDE] Typecasting problems with PyQt embedded in Scribus

2005-06-30 Thread Henning Schröder
Hi! Jim Bublitz [EMAIL PROTECTED]: [..] wrapinstance and unwrapinstance are covered in the sip docs. Thanks I will try your C++/Python-mixed solution. But I wonder why the following does not work: ptr = sip.unwrapinstance(qt.qApp.mainWidget()) mainWindow = sip.wrapinstance(ptr,

Re: [PyKDE] SIP- 4.2.1 (snapshot-20050625-332) less smart than g++ in identifying abstract classes

2005-06-30 Thread Phil Thompson
On Sunday 26 June 2005 3:57 pm, Gerard Vermeulen wrote: Here is an example where the sip specification matches exactly the corresponding header files: -- start header file -- #ifndef V_H #define V_H class A { public: A(); virtual ~A(); virtual int getTypeId() = 0; };

Re: [PyKDE] Latest PyKDE Snapshot

2005-06-30 Thread Jim Bublitz
On Thursday 30 June 2005 04:24, Stephan Hermann wrote: Hi, what are the changes to last snapshot? Anyway, the changelog is not updated, and it's hard to determine the changes at all... can someone summarize the changes beginning from: [EMAIL PROTECTED]:~/kde/pykde$ less

Re: [PyKDE] PyKDE without KApplication

2005-06-30 Thread Simon Edwards
On Thursday 30 June 2005 16:33, Mike Tammerman wrote: Is there a way to instantiate pykde classes using QApplication instead KApplication. You could try, but it would be a very unwise thing to do. The KDE classes assume that KApplication is around and correctly initialised. -- Simon Edwards  

Re: [PyKDE] Segmentation fault with anonymous enum

2005-06-30 Thread Phil Thompson
On Thursday 30 June 2005 5:27 pm, Denis S. Otkidach wrote: If I define single enum in module (no other entries constants), then I have no enummembers in generated file and it's not exposed in module. If I have other (non-anonymous) enums, then adding anonymouse one causes segmentation fault

Re: [PyKDE] Typecasting problems with PyQt embedded in Scribus

2005-06-30 Thread Giovanni Bajo
Jim Bublitz [EMAIL PROTECTED] wrote: But I wonder why the following does not work: ptr = sip.unwrapinstance(qt.qApp.mainWidget()) mainWindow = sip.wrapinstance(ptr, qt.QMainWindow) Unfortunately mainWindow is still a QWidget. I'm not sure - my guess is that it's because ptr is already typed