本文整理汇总了Python中_Framework.SessionZoomingComponent.SessionZoomingComponent.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python SessionZoomingComponent.__init__方法的具体用法?Python SessionZoomingComponent.__init__怎么用?Python SessionZoomingComponent.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类_Framework.SessionZoomingComponent.SessionZoomingComponent
的用法示例。
在下文中一共展示了SessionZoomingComponent.__init__方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from _Framework.SessionZoomingComponent import SessionZoomingComponent [as 别名]
# 或者: from _Framework.SessionZoomingComponent.SessionZoomingComponent import __init__ [as 别名]
def __init__(self, session, stop_buttons):
SessionZoomingComponent.__init__(self, session)
self._stop_buttons = stop_buttons
self._ignore_buttons = False
for button in self._stop_buttons:
assert isinstance(button, ButtonElement)
button.add_value_listener(self._stop_value, identify_sender=True)
示例2: __init__
# 需要导入模块: from _Framework.SessionZoomingComponent import SessionZoomingComponent [as 别名]
# 或者: from _Framework.SessionZoomingComponent.SessionZoomingComponent import __init__ [as 别名]
def __init__(self,
session = None,
shift = None,
unselected_color = RED,
selected_color = GREEN,
**kwargs):
Elementary.__init__(self, **kwargs)
SessionZoomingComponent.__init__(self, session)
self.set_button_matrix(session.button_matrix)
self.set_zoom_button(self.button(shift, blink_on = True))
self.set_stopped_value(unselected_color)
self.set_selected_value(selected_color)
self.set_nav_buttons(session.up_button, session.down_button, session.left_button, session.right_button)
if hasattr(session, 'scene_launch_buttons'):
self.set_scene_bank_buttons(tuple(session.scene_launch_buttons))
示例3: __init__
# 需要导入模块: from _Framework.SessionZoomingComponent import SessionZoomingComponent [as 别名]
# 或者: from _Framework.SessionZoomingComponent.SessionZoomingComponent import __init__ [as 别名]
def __init__(self, session):
SessionZoomingComponent.__init__(self, session)