def setup_standalone_signals(instance):
 window = instance.get_widget('config-window')
 window.connect('delete-event', gtk.main_quit)
 button = instance.get_widget('button1')
 button.handler_block_by_func(instance.gtk_widget_destroy)
 button.connect('clicked', gtk.main_quit)
 return instance

def setup_standalone_signals ( instance ) : window = instance . get_widget ( 'config-window' ) window . connect ( 'delete-event' , gtk . main_quit ) button = instance . get_widget ( 'button1' ) button . handler_block_by_func ( instance . gtk_widget_destroy ) button . connect ( 'clicked' , gtk . main_quit ) return instance
called when prefs dialog is running in standalone mode .