Try something like this... Note the additional window flag. That wasn't necessary for me on Linux, but it made a huge difference on Windows.
class mydialog(QDialog): def __init__(self, parent, name, modal, fl): QDialog.__init__(self,parent,name,modal,fl | QWidget.WDestructiveClose) Greg Fortune Fortune Solutions On Thursday 03 June 2004 01:27 am, Axel Mittendorf wrote: > ----- Original Message ----- > From: "Phil Thompson" > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 01, 2004 6:04 PM > Subject: Re: [PyKDE] deleting a window > > > On Tuesday 01 June 2004 3:10 pm, Axel wrote: > > > del win > > > win = SomeWin() > > > win.show() > > now I do: > win.deleteLater() > win = SomeWin() > and so on. > But the app is still getting bigger when I open and close the window > multiple times. > The size of the app rises slower than before but I thought that it would > not rise at all > in the case everythink (the old window and everythink on it) was thrown > away correctly. Example: The app is started and the window is opened once, > the size is about 20900KB, now I open and close the window about 500 times > (I love my teaspoon;-), > the size is about 32000KB. > There is no difference if I do > for ch in win.children(): > ch.deleteLater() > before win.deleteLater(). > What do I do wrong? > > TIA, > Axel > > _______________________________________________ > PyKDE mailing list [EMAIL PROTECTED] > http://mats.imk.fraunhofer.de/mailman/listinfo/pykde _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
