本文整理汇总了Python中matplotlib.backend_bases.cursors.WAIT属性的典型用法代码示例。如果您正苦于以下问题:Python cursors.WAIT属性的具体用法?Python cursors.WAIT怎么用?Python cursors.WAIT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类matplotlib.backend_bases.cursors
的用法示例。
在下文中一共展示了cursors.WAIT属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: on_draw_event
# 需要导入模块: from matplotlib.backend_bases import cursors [as 别名]
# 或者: from matplotlib.backend_bases.cursors import WAIT [as 别名]
def on_draw_event(self, widget, ctx):
"""GtkDrawable draw event."""
# toolbar = self.toolbar
# if toolbar:
# toolbar.set_cursor(cursors.WAIT)
self._renderer.set_context(ctx)
allocation = self.get_allocation()
Gtk.render_background(
self.get_style_context(), ctx,
allocation.x, allocation.y, allocation.width, allocation.height)
self._render_figure(allocation.width, allocation.height)
# if toolbar:
# toolbar.set_cursor(toolbar._lastCursor)
return False # finish event propagation?
示例2: on_draw_event
# 需要导入模块: from matplotlib.backend_bases import cursors [as 别名]
# 或者: from matplotlib.backend_bases.cursors import WAIT [as 别名]
def on_draw_event(self, widget, ctx):
"""GtkDrawable draw event."""
toolbar = self.toolbar
# if toolbar:
# toolbar.set_cursor(cursors.WAIT)
self._renderer.set_context(ctx)
allocation = self.get_allocation()
Gtk.render_background(
self.get_style_context(), ctx,
allocation.x, allocation.y, allocation.width, allocation.height)
self._render_figure(allocation.width, allocation.height)
# if toolbar:
# toolbar.set_cursor(toolbar._lastCursor)
return False # finish event propagation?
示例3: on_draw_event
# 需要导入模块: from matplotlib.backend_bases import cursors [as 别名]
# 或者: from matplotlib.backend_bases.cursors import WAIT [as 别名]
def on_draw_event(self, widget, ctx):
"""GtkDrawable draw event."""
toolbar = self.toolbar
# if toolbar:
# toolbar.set_cursor(cursors.WAIT)
self._renderer.set_context(ctx)
allocation = self.get_allocation()
self._render_figure(allocation.width, allocation.height)
# if toolbar:
# toolbar.set_cursor(toolbar._lastCursor)
return False # finish event propagation?