Re: [PyKDE] Using thread and event filter crashes Python

2005-07-10 Thread Phil Thompson
On Wednesday 06 July 2005 9:40 am, Yann COINTEPAS wrote: > Setting an event filter to the QApplication singleton and using threads > lead to a Python crash due to a double deletion of a widget (at Python > level). This happens with PyQt 3.14.1 and sip 4.2.1. I don't know if it is > the same for oth

Re: [PyKDE] Problem with layout iterators

2005-07-10 Thread Phil Thompson
On Sunday 10 July 2005 12:49 pm, Giovanni Bajo wrote: > Phil Thompson <[EMAIL PROTECTED]> wrote: > >> Can't you pretend all those virtual functions are pure, so that > >> they're invoked virtually? At least the iterator will work > >> correctly, even if Python doesn't know its real type. > > > > Th

Re: [PyKDE] Problem with layout iterators

2005-07-10 Thread Giovanni Bajo
Phil Thompson <[EMAIL PROTECTED]> wrote: >> Can't you pretend all those virtual functions are pure, so that >> they're invoked virtually? At least the iterator will work >> correctly, even if Python doesn't know its real type. > > The iterator works fine. The problem is working out the specific ty

Re: [PyKDE] Problem with layout iterators

2005-07-10 Thread Baz Walter
Phil Thompson wrote: > Ok, I've managed to extract enough type information to make this work. The [snip] > You will need tonight's PyQt snaphot built with tonight's SIP snapshot. (The > SIP changes were needed to handle QLayout's multiple inheritance.) Thanks very much for taking the time to loo

Re: [PyKDE] Problem with layout iterators

2005-07-10 Thread Hans-Peter Jansen
Am Sonntag, 10. Juli 2005 12:20 schrieb Phil Thompson: > > > > Can this be fixed, so that only the correct sub-classes are > > produced by the layout iterators, please? > > Ok, I've managed to extract enough type information to make this > work. The following code... > > from qt import * > > a = QA

Re: [PyKDE] Problem with layout iterators

2005-07-10 Thread Phil Thompson
On Saturday 09 July 2005 2:53 pm, Baz Walter wrote: > Hello again > > My earlier post on this got no response, so I suppose my description of the > problem was no good :-( > > So - I hope this is a bit clearer: > > QLayoutIterator should produce objects which *inherit* QLayoutItem (such as > a QLay