Re: [PyKDE] PyQt4 Questions

2006-03-20 Thread Phil Thompson
On Saturday 18 March 2006 4:11 pm, Detlev Offenbach wrote: Am Samstag, 18. März 2006 16:29 schrieb Giovanni Bajo: Detlev Offenbach [EMAIL PROTECTED] wrote: I have a dialog, that creates a new dialog and shows it. The code is like self.dlg = MyDialog(self) dlg.show() MyDialog

[PyKDE] PyQt4 Questions

2006-03-18 Thread Detlev Offenbach
Hi, I have a dialog, that creates a new dialog and shows it. The code is like self.dlg = MyDialog(self) dlg.show() This code is part of a slot. Whenever this code is hit, a new dialog is created with destroying the old one. I thought, that the garbage collector should take care of deleting

Re: [PyKDE] PyQt4 Questions

2006-03-18 Thread Giovanni Bajo
Detlev Offenbach [EMAIL PROTECTED] wrote: I have a dialog, that creates a new dialog and shows it. The code is like self.dlg = MyDialog(self) dlg.show() MyDialog is a QObject, and it is constructed as child of self. Its lifetime becomes bound to the lifetime of self, pretty much like every

Re: [PyKDE] PyQt4 Questions

2006-03-18 Thread Detlev Offenbach
Am Samstag, 18. März 2006 16:29 schrieb Giovanni Bajo: Detlev Offenbach [EMAIL PROTECTED] wrote: I have a dialog, that creates a new dialog and shows it. The code is like self.dlg = MyDialog(self) dlg.show() MyDialog is a QObject, and it is constructed as child of self. Its lifetime