Здравствуйте, 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
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
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