在gtk / python中,MessageBox等效于什么?
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.
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()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.