def quit_app(self, event=None): """Shutdown the thread scheduler, save the configuration and quit the application.""" self.thread_scheduler.shutdown(wait=False) URLMonitorConfig.save(self.url_monitor._urls) self.view.quit()
def _load_configuration(self): urls = URLMonitorConfig.load() for url in urls: self._add_url_to_monitor(url['url'], auth=url['auth'], label=url['label']) self.view.monitor_widget.insert_item(url['url'], label=url['label'])