Ejemplo n.º 1
0
 def open_log_button_clicked_cb(self, button, log_file):
     if log_file:
         self.stop = False
         dialog = OpeningLogDialog(title = "Opening Log",
             parent = None,
             flags = gtk.DIALOG_MODAL
                     | gtk.DIALOG_DESTROY_WITH_PARENT
                     | gtk.DIALOG_NO_SEPARATOR)
         #create a thread to open log file
         background = OpeningLogThread(dialog, log_file, self)
         background.start()
         response = dialog.run()
         self.stop = True
         background.join()
Ejemplo n.º 2
0
 def open_log_button_clicked_cb(self, button, log_file):
     if log_file:
         self.stop = False
         dialog = OpeningLogDialog(title="Opening Log",
                                   parent=None,
                                   flags=gtk.DIALOG_MODAL
                                   | gtk.DIALOG_DESTROY_WITH_PARENT
                                   | gtk.DIALOG_NO_SEPARATOR)
         #create a thread to open log file
         background = OpeningLogThread(dialog, log_file, self)
         background.start()
         response = dialog.run()
         self.stop = True
         background.join()