Ejemplo n.º 1
0
 def abort_test(action):
     """ if ssh dies, we don't need to try to read/write from its sockets """
     e = child.poll()
     if e is not None:
         error_message = "cannot %s using %s: the SSH process has terminated with exit code=%s" % (action, display_desc["full_ssh"], e)
         print(error_message)
         from wimpiggy.util import gtk_main_quit_really
         gtk_main_quit_really()
         raise IOError(error_message)
Ejemplo n.º 2
0
 def abort_test(action):
     """ if ssh dies, we don't need to try to read/write from its sockets """
     e = child.poll()
     if e is not None:
         error_message = "cannot %s using %s: the SSH process has terminated with exit code=%s" % (action, display_desc["full_ssh"], e)
         print(error_message)
         from wimpiggy.util import gtk_main_quit_really
         gtk_main_quit_really()
         raise IOError(error_message)
Ejemplo n.º 3
0
 def quit_launcher(*args):
     gtk_main_quit_really()
Ejemplo n.º 4
0
 def quit(self, *args):
     gtk_main_quit_really()
Ejemplo n.º 5
0
def ssh_connect_failed(message):
    #by the time ssh fails, we may have entered the gtk main loop
    #(and more than once thanks to the clipboard code..)
    from wimpiggy.util import gtk_main_quit_really
    gtk_main_quit_really()
Ejemplo n.º 6
0
 def quit_launcher(*args):
     gtk_main_quit_really()
Ejemplo n.º 7
0
 def _process_connection_lost(self, packet):
     log.error("Connection lost")
     gtk_main_quit_really()
Ejemplo n.º 8
0
 def _wm_quit(self, *args):
     gtk_main_quit_really()
Ejemplo n.º 9
0
 def _process_connection_lost(self, packet):
     log.error("Connection lost")
     gtk_main_quit_really()
Ejemplo n.º 10
0
 def quit(self, upgrading):
     self._upgrading = upgrading
     gtk_main_quit_really()
Ejemplo n.º 11
0
def ssh_connect_failed(message):
    #by the time ssh fails, we may have entered the gtk main loop
    #(and more than once thanks to the clipboard code..)
    from wimpiggy.util import gtk_main_quit_really
    gtk_main_quit_really()