Posted By

arcturus on 10/25/07


Tagged

python pygtk


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

danigm
roccostorm


Simple dialog


 / Published in: Python
 

  1. message = "Please, first select a portion of code to post"
  2. dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO,
  3. gtk.BUTTONS_NONE, message)
  4. dialog.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)
  5. dialog.run()
  6. dialog.destroy()

Report this snippet  

You need to login to post a comment.