本文整理汇总了Python中matplotlib.backends._macosx.Timer方法的典型用法代码示例。如果您正苦于以下问题:Python _macosx.Timer方法的具体用法?Python _macosx.Timer怎么用?Python _macosx.Timer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.backends._macosx
的用法示例。
在下文中一共展示了_macosx.Timer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: new_timer
# 需要导入模块: from matplotlib.backends import _macosx [as 别名]
# 或者: from matplotlib.backends._macosx import Timer [as 别名]
def new_timer(self, *args, **kwargs):
"""
Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
This is useful for getting periodic events through the backend's native
event loop. Implemented only for backends with GUIs.
optional arguments:
*interval*
Timer interval in milliseconds
*callbacks*
Sequence of (func, args, kwargs) where func(*args, **kwargs) will
be executed by the timer every *interval*.
"""
return TimerMac(*args, **kwargs)
示例2: new_timer
# 需要导入模块: from matplotlib.backends import _macosx [as 别名]
# 或者: from matplotlib.backends._macosx import Timer [as 别名]
def new_timer(self, *args, **kwargs):
"""
Creates a new backend-specific subclass of `backend_bases.Timer`.
This is useful for getting periodic events through the backend's native
event loop. Implemented only for backends with GUIs.
Other Parameters
----------------
interval : scalar
Timer interval in milliseconds
callbacks : list
Sequence of (func, args, kwargs) where ``func(*args, **kwargs)``
will be executed by the timer every *interval*.
"""
return TimerMac(*args, **kwargs)