sashoalm
sashoalm

Reputation: 79457

How to show MessageBox with pygtk?

In gtk/python, what is the equivalent of MessageBox?

Upvotes: 1

Views: 7636

Answers (2)

pajton
pajton

Reputation: 16226

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()

Upvotes: 3

Sandro Munda
Sandro Munda

Reputation: 41030

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.

Upvotes: 3

Related Questions