예제 #1
0
 def _on_timer(self):
     TimerBase._on_timer(self)
     if len(self.callbacks) > 0 and not self._single:
         return True
     else:
         self._timer = None
         return False
예제 #2
0
    def _on_timer(self):
        TimerBase._on_timer(self)

        # Tk after() is only a single shot, so we need to add code here to
        # reset the timer if we're not operating in single shot mode.
        if not self._single and len(self.callbacks) > 0:
            self._timer = self.parent.after(self._interval, self._on_timer)
        else:
            self._timer = None
예제 #3
0
    def _on_timer(self):
        TimerBase._on_timer(self)

        # Tk after() is only a single shot, so we need to add code here to
        # reset the timer if we're not operating in single shot mode.
        if not self._single and len(self.callbacks) > 0:
            self._timer = self.parent.after(self._interval, self._on_timer)
        else:
            self._timer = None
예제 #4
0
    def _on_timer(self):
        TimerBase._on_timer(self)

        # Gtk timeout_add() requires that the callback returns True if it
        # is to be called again.
        if self.callbacks and not self._single:
            return True
        else:
            self._timer = None
            return False
예제 #5
0
    def _on_timer(self):
        TimerBase._on_timer(self)

        # Gtk timeout_add() requires that the callback returns True if it
        # is to be called again.
        if len(self.callbacks) > 0 and not self._single:
            return True
        else:
            self._timer = None
            return False
예제 #6
0
 def _on_timer(self):
     TimerBase._on_timer(self)
     # Tk after() is only a single shot, so we need to add code here to
     # reset the timer if we're not operating in single shot mode.  However,
     # if _timer is None, this means that _timer_stop has been called; so
     # don't recreate the timer in that case.
     if not self._single and self._timer:
         self._timer = self.parent.after(self._interval, self._on_timer)
     else:
         self._timer = None
예제 #7
0
    def _on_timer(self):
        TimerBase._on_timer(self)

        # Tk after() is only a single shot, so we need to add code here to
        # reset the timer if we're not operating in single shot mode.  However,
        # if _timer is None, this means that _timer_stop has been called; so
        # don't recreate the timer in that case.
        if not self._single and self._timer:
            self._timer = self.parent.after(self._interval, self._on_timer)
        else:
            self._timer = None
예제 #8
0
 def _on_timer(self, dt):
     TimerBase._on_timer(self)
 def _on_timer(self, dt):
     TimerBase._on_timer(self)