def exit(self): if self.close_all(): self.update_config() config.save(self.appdata.app_config) gtk.main_quit() return True return False
def _threaded_check(self): try: import urllib urllib.time file = urllib.urlopen('http://sk1project.org/release_markers/lincutter/version.txt') actual_version = file.readline().strip() file.close() config.actual_version = actual_version config.save(self.appdata.app_config) except: pass
def _threaded_check(self): try: import urllib urllib.time file = urllib.urlopen( 'http://sk1project.org/release_markers/lincutter/version.txt') actual_version = file.readline().strip() file.close() config.actual_version = actual_version config.save(self.appdata.app_config) except: pass