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