[pygtk] Close button on gtk.AboutDialog

Markus W. Barth markus at sismografo.es
Wed Jun 25 14:13:41 WST 2008


On Tuesday 24 June 2008 16:07:18 Ronaldo Nascimento wrote:
> Code
>
> >         self.aboutdialog = gtk.AboutDialog()
> >         self.aboutdialog.set_version('0.0.1')
> >         self.aboutdialog.show()
>
> How do i get the "close" button to hide the dialog?
> thanks

use self.aboutdialog.run() instead of show()

Then call
self.aboutdialog.destroy()






More information about the pygtk mailing list