Re: a lot of modal dialogs without GTK.main

2010-02-06 Thread Andrey Nikitin
Здравствуйте, David Nečas. 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

Re: a lot of modal dialogs without GTK.main

2010-02-05 Thread Andrey Nikitin
But I noticed that dialog.destroy() call really does not destroy the dialog window. Have solution? I found the solution, see my code (I use the excellent ruby gtk binding) below: [code] # create first dialog ... if dialog.run == Gtk::Dialog::RESPONSE_ACCEPT # make something else

a lot of modal dialog without GTK.main

2010-02-04 Thread Andrey Nikitin
Hi. I try make my first GTK application without creation a main window and without GTK.main() call. [code] dialog1.run exit if error dialog1.destroy dialog2.run exit if error dialog2.destroy ... result_msg_dialog.run result_msg_dialog.destroy [/code] But I noticed that dialog.destroy() call