本文整理汇总了Python中ui.UI.hide_all_windows方法的典型用法代码示例。如果您正苦于以下问题:Python UI.hide_all_windows方法的具体用法?Python UI.hide_all_windows怎么用?Python UI.hide_all_windows使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ui.UI
的用法示例。
在下文中一共展示了UI.hide_all_windows方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Cuadraditos
# 需要导入模块: from ui import UI [as 别名]
# 或者: from ui.UI import hide_all_windows [as 别名]
class Cuadraditos(activity.Activity):
log = logging.getLogger('cuadraditos-activity')
def __init__(self, handle):
activity.Activity.__init__(self, handle)
#flags for controlling the writing to the datastore
self.I_AM_CLOSING = False
self.I_AM_SAVED = False
self.props.enable_fullscreen_mode = False
self.ui = None
Constants(self)
#self.modify_bg(gtk.STATE_NORMAL, Constants.color_black.gColor)
#wait a moment so that our debug console capture mistakes
gobject.idle_add(self._initme, None)
def _initme(self, userdata=None):
#the main classes
self.m = Model(self)
self.capture = Capture(self)
self.ui = UI(self)
return False
def stop_pipes(self):
self.capture.stop()
def restart_pipes(self):
self.capture.stop()
self.capture.play()
def close(self):
self.I_AM_CLOSING = True
self.m.UPDATING = False
if (self.ui != None):
self.ui.hide_all_windows()
if (self.capture != None):
self.capture.stop()
#this calls write_file
activity.Activity.close(self)
def destroy(self):
if self.I_AM_SAVED:
activity.Activity.destroy(self)