Re: [PyQt] core dump in pyqt application

2008-07-06 Thread Andreas Pakulat
On 06.07.08 13:16:09, Iván García wrote: One of my users just reported this bug: ASSERT failure in QCoreApplication::sendEvent: Cannot send events to objects owned by a different thread. Current thread f74470. Receiver 'MainWindow' (of type 'QMainWindow') was created in thread 9a7fc0, file

[PyQt] pykde4 solid question

2008-07-06 Thread Peter Liedler
Hello there, earlier this year I wrote a graphgical frontend to lxdvdrip -- klxdvdrip. One of the functions I wrote used the supported Media function of solid to determine if the OpticalDrive is a burining device. In newer versions this code crashes. As I am eager to fix this I tried some

Re: [PyQt] core dump in pyqt application

2008-07-06 Thread Iván García
Currently the app uses python threads, not pyqt threads, could this be the reason? The only thread I'm having now is a logging function: self.setTitleBarText(Trying to login...) try: if self.OSDBServer._login(username, password) : if not username:

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

[PyQt] QDialog's widgets do not show up correctly

2008-07-06 Thread Christoph Schmidt
Hi, I'm currently learning programming with PyQt and play around a bit with python-apt + PyQt4. My problem is as follows: In order to indicate the progress of an apt operation, python-apt offers the possibility to pass an instance of a progress class. In this case I subclassed FetchProgress

Re: [PyQt] pykde4 solid question

2008-07-06 Thread Simon Edwards
Peter Liedler wrote: Which gives me the following error: print cdrom.supportedMedia() AttributeError: supportedMedia Am I using Solid in a wrong way? If you post a complete but minimal python program which reproduces the problem, then I'll try it against KDE 4.1 and see what is going

[PyQt] ANN: eric4 assistant plugin released

2008-07-06 Thread Detlev Offenbach
Hi, I just released the first snapshot of the eric4 assistant plugin. It is an alternative autocompletion and calltips provider. The information is taken from QScintilla API files, the current document or from the APIs of the current project. It adjusts automatically to changes of the project.

[PyQt] ANN: new eric4 and rope plugin snapshots released

2008-07-06 Thread Detlev Offenbach
Hi, I'd like to inform everybody about the immediate availability of a new eric 4.2 snapshot. It fixes a few bugs and includes these changes. - bug fixes - changed subversion relocate function to perform a relocation inside a repository - added an indication of the current editor's language

Re: [PyQt] Memory leak

2008-07-06 Thread Phil Thompson
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 4.7.6, PyQt 4.2.2, Qt 4.4.0:

Re: [PyQt] Virtual methods and an extra reference

2008-07-06 Thread Phil Thompson
On Wed, 18 Jun 2008 18:03:49 + (UTC), Kevin Watters [EMAIL PROTECTED] wrote: There's a comment in siplib.c:5300ish in the sip_api_is_py_method function that I'll reproduce here: /* * Note that the callable is never garbage collected. The main * reason for this is that it's not

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] QDialog's widgets do not show up correctly

2008-07-06 Thread Christoph Schmidt
On 2008-07-06 17:39:29, Phil Thompson wrote: Modal dialogs have their own event loop. You probably need to call the dialog's exec_() method. Phil Thanks a lot for the hint about the event loop. I cannot call exec_(), as this would block the cache.update() method but regularly calling

Re: [PyQt] pykde4 solid question

2008-07-06 Thread Simon Edwards
Hi, Peter Liedler wrote: this one should be executable: if cdrom.isDeviceInterface (Solid.DeviceInterface.OpticalDrive): burner = cdrom.asDeviceInterface (Solid.DeviceInterface.OpticalDrive) print burner.supportedMedia() Looks like a bug in PyKDE. You should

Re: [PyQt] pykde4 solid question

2008-07-06 Thread Simon Edwards
Simon Edwards wrote: Hi, Peter Liedler wrote: this one should be executable: if cdrom.isDeviceInterface (Solid.DeviceInterface.OpticalDrive): burner = cdrom.asDeviceInterface (Solid.DeviceInterface.OpticalDrive) print burner.supportedMedia() Looks like a bug

Re: [PyQt] core dump in pyqt application

2008-07-06 Thread Andreas Pakulat
On 06.07.08 20:34:05, Iván García wrote: Currently the app uses python threads, not pyqt threads, could this be the reason? The only thread I'm having now is a logging function: self.setTitleBarText(Trying to login...) try: if self.OSDBServer._login(username,

Re: [PyQt] pykde4 solid question

2008-07-06 Thread Peter Liedler
Thank you. I think there is no need to backport it to kde 4.0 since 4.1 is released at the end of this month and I seem to be the only one using it at this time. Peter Simon Edwards wrote: Simon Edwards wrote: Hi, Peter Liedler wrote: this one should be executable: if

[PyQt] PyKDE4 kioslave example

2008-07-06 Thread Arthur Pemberton
I am interested in developing a simple kioslave in python, something similar to this: http://kde-apps.org/content/show.php/New+sysinfo?content=84583 I am just looking for sample code since the PyQt/PyKDE4 references are a bit C++ heavy for me to use from scratch. Thank you. -- Fedora 7 :