Example #1
0
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
Example #2
0
 def update_on_start(timer_id, timer_t):
     print "startup update"
     timer.kill_timer(timer_id)
     if need_update():
         with_update_dialog(st)
Example #3
0
 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)
Example #4
0
def check_updates(self):
    if need_update():
        with_update_dialog(self)
    else:
        without_update_dialog(self)
Example #5
0
 def update_callback(st):
     if need_update():
         if hasattr(st, "displayed") and not st.displayed:
             update_dialog(st, None)
Example #6
0
def check_updates(self, widget, data=None):
    if need_update():
        update_dialog(self, widget)
    else:
        no_update_dialog(self, widget)
Example #7
0
def checkUpdates_(self, notification):
    if need_update():
        self.withUpdateDialog_(notification)
    else:
        self.withoutUpdateDialog_(notification)