In gtk/python, what is the equivalent of MessageBox?
2 Answers
That would be gtk.MessageDialog.
Example:
parent = None
md = gtk.MessageDialog(parent,
gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_INFO,
gtk.BUTTONS_CLOSE, "Download completed")
md.run()
Comments
You can follow this tutorial about message dialogs with PyGTK :
http://zetcode.com/tutorials/pygtktutorial/dialogs
In addition, you can read the documentation about the MessageDialog class.
1 Comment
zpangwin
not surprsing for such an old answer but both links are now dead...
gi.repositoryGtk bindings, these answers may not work well for new projects.