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()
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()