On Monday 28 November, dannym wrote:

> Usually you just use a modal event loop:
> 
> dialog = gtk.FileChooserDialog()
> answer = dialog.run() # hangs around until dialog is closed
> del dialog

Hi. Wouldn't it be better to say:

  dialog.destroy()

instead of

  del dialog

?

It was a long time ago that I did looked into this, but I found that
in order to avoid memory leaks in long running processes that
created/destroyed a lot of widgets, I had to explicitly call destroy()
myself. I confess I'm not even sure if del calls it for you...

-- 
Graham Ashton
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to