Re: a lot of modal dialogs without GTK.main
- From: David NeÄas <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: a lot of modal dialogs without GTK.main
- Date: Sat, 6 Feb 2010 11:03:33 +0100
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]