def updateMonitor_(self, notification): if need_update(): if not (hasattr(self, 'displayed') and self.displayed): self.withUpdateDialog_(notification) else: # user doesn't want to be bothered. if hasattr(self, 'updateTimer'): self.updateTimer.invalidate() self.updateTimer = None
def update_on_start(timer_id, timer_t): print "startup update" timer.kill_timer(timer_id) if need_update(): with_update_dialog(st)
def update_monitor(timer_id, timer_t): if need_update(): if not (hasattr(st, 'displayed') and st.displayed): with_update_dialog(st) else: timer.kill_timer(timer_id)
def check_updates(self): if need_update(): with_update_dialog(self) else: without_update_dialog(self)
def update_callback(st): if need_update(): if hasattr(st, "displayed") and not st.displayed: update_dialog(st, None)
def check_updates(self, widget, data=None): if need_update(): update_dialog(self, widget) else: no_update_dialog(self, widget)
def checkUpdates_(self, notification): if need_update(): self.withUpdateDialog_(notification) else: self.withoutUpdateDialog_(notification)