Re: a lot of modal dialogs without GTK.main



On Sat, Feb 06, 2010 at 12:49:43PM +0300, Andrey Nikitin wrote:
while True:
    dialog = gtk.MessageDialog(buttons=gtk.BUTTONS_OK,
message_format='Close me.') dialog.connect('response', response)
    dialog.show_all()
    gtk.main()
    print 'Done!'
===============================================================

You mean something like this?
Works perfectly.

Yes, fine, although I don't see a much difference instead the "manual"
events pending after each dialog.run().

Only GtkDialog has run(), other types of windows don't have anything
like that.  So this is the way you (or I, anyway) would run any other
temporary UI.

Whereas gtk_main_iteration_do() is a kluge.

Yeti




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]