本文整理汇总了Python中matplotlib.backend_bases.TimerBase._on_timer方法的典型用法代码示例。如果您正苦于以下问题:Python TimerBase._on_timer方法的具体用法?Python TimerBase._on_timer怎么用?Python TimerBase._on_timer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.backend_bases.TimerBase
的用法示例。
在下文中一共展示了TimerBase._on_timer方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _on_timer
# 需要导入模块: from matplotlib.backend_bases import TimerBase [as 别名]
# 或者: from matplotlib.backend_bases.TimerBase import _on_timer [as 别名]
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
示例2: _on_timer
# 需要导入模块: from matplotlib.backend_bases import TimerBase [as 别名]
# 或者: from matplotlib.backend_bases.TimerBase import _on_timer [as 别名]
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
示例3: _on_timer
# 需要导入模块: from matplotlib.backend_bases import TimerBase [as 别名]
# 或者: from matplotlib.backend_bases.TimerBase import _on_timer [as 别名]
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
示例4: _on_timer
# 需要导入模块: from matplotlib.backend_bases import TimerBase [as 别名]
# 或者: from matplotlib.backend_bases.TimerBase import _on_timer [as 别名]
def _on_timer(self, dt):
TimerBase._on_timer(self)