How to test if GTK+ dialog has been created?,Gtk.main()