import sys import gtk import colorcombinate as cc def resp (obj, arg): obj.destroy() gtk.main_quit() # create the dialog c=cc.ColorcombinateDialog() c.connect ("response", resp); #gtk magic c.show_all() gtk.main() #bye sys.exit(1)