how to test if gtk+ dialog has been created?,Gtk.main()