本文整理汇总了Python中pyface.api.GUI.set_busy方法的典型用法代码示例。如果您正苦于以下问题:Python GUI.set_busy方法的具体用法?Python GUI.set_busy怎么用?Python GUI.set_busy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyface.api.GUI
的用法示例。
在下文中一共展示了GUI.set_busy方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: force_draw
# 需要导入模块: from pyface.api import GUI [as 别名]
# 或者: from pyface.api.GUI import set_busy [as 别名]
def force_draw(self):
r"""
Method for forcing the current figure to render. This is useful for
the widgets animation.
"""
from pyface.api import GUI
_gui = GUI()
orig_val = _gui.busy
_gui.set_busy(busy=True)
_gui.set_busy(busy=orig_val)
_gui.process_events()
示例2: force_render
# 需要导入模块: from pyface.api import GUI [as 别名]
# 或者: from pyface.api.GUI import set_busy [as 别名]
def force_render( figure=None ):
from mayavi import mlab
figure.scene.render()
mlab.draw(figure=figure)
from pyface.api import GUI
_gui = GUI()
orig_val = _gui.busy
_gui.set_busy(busy=True)
_gui.process_events()
_gui.set_busy(busy=orig_val)
_gui.process_events()
示例3: _busy_changed
# 需要导入模块: from pyface.api import GUI [as 别名]
# 或者: from pyface.api.GUI import set_busy [as 别名]
def _busy_changed(self, val):
GUI.set_busy(val)
示例4: _fits_hsp_points_fired
# 需要导入模块: from pyface.api import GUI [as 别名]
# 或者: from pyface.api.GUI import set_busy [as 别名]
def _fits_hsp_points_fired(self):
GUI.set_busy()
self.model.fit_scale_hsp_points()
GUI.set_busy(False)
示例5: _fits_fid_fired
# 需要导入模块: from pyface.api import GUI [as 别名]
# 或者: from pyface.api.GUI import set_busy [as 别名]
def _fits_fid_fired(self):
GUI.set_busy()
self.model.fit_scale_fiducials()
GUI.set_busy(False)
示例6: _fits_ap_fired
# 需要导入模块: from pyface.api import GUI [as 别名]
# 或者: from pyface.api.GUI import set_busy [as 别名]
def _fits_ap_fired(self):
GUI.set_busy()
self.model.fit_scale_auricular_points()
GUI.set_busy(False)