예제 #1
0
 def start(self):
     ''' Start the thing... '''
     self.cli_options = mvc_model.parse_options()
     errmsg = mvc_model.check_resultsdir(self.cli_options['results_dir'])
     self.view.builder.get_object('main_window').show_all()
     if errmsg:
         self.view.show_warning("Invalid results directory", errmsg, True)
         Gtk.main_quit()
예제 #2
0
 def start(self):
     ''' Start the thing... '''
     self.cli_options = mvc_model.parse_options()
     errmsg = mvc_model.check_resultsdir(self.cli_options['results_dir'])
     self.view.builder.get_object('main_window').show_all()
     if errmsg:
         self.view.show_warning("Invalid results directory", errmsg, True)
         Gtk.main_quit()
예제 #3
0
 def start(self):
     ''' Start the thing... '''
     self.cli_options = mvc_model.parse_options()
     if not self.cli_options:
         sys.stderr.write(_USAGE)
         sys.exit(1)
     errmsg = mvc_model.check_resultsdir(self.cli_options['results_dir'])
     if errmsg:
         self.view.results_dir_reset(errmsg)
     else:
         errmsg = _check_groups()
         if errmsg:
             self.view.show_warning("Missing lirc group", errmsg)
     self.view.builder.get_object('main_window').show_all()
예제 #4
0
 def start(self):
     ''' Start the thing... '''
     self.cli_options = mvc_model.parse_options()
     if not self.cli_options:
         sys.stderr.write(_USAGE)
         sys.exit(1)
     errmsg = mvc_model.check_resultsdir(self.cli_options['results_dir'])
     if errmsg:
         self.view.results_dir_reset(errmsg)
     else:
         errmsg = _check_groups()
         if errmsg:
             self.view.show_warning("Missing lirc group", errmsg)
     self.view.builder.get_object('main_window').show_all()