Ejemplo n.º 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
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 4
0
def check_updates(self):
    if need_update():
        with_update_dialog(self)
    else:
        without_update_dialog(self)
Ejemplo n.º 5
0
 def update_callback(st):
     if need_update():
         if hasattr(st, "displayed") and not st.displayed:
             update_dialog(st, None)
Ejemplo n.º 6
0
def check_updates(self, widget, data=None):
    if need_update():
        update_dialog(self, widget)
    else:
        no_update_dialog(self, widget)
Ejemplo n.º 7
0
def checkUpdates_(self, notification):
    if need_update():
        self.withUpdateDialog_(notification)
    else:
        self.withoutUpdateDialog_(notification)