本文整理汇总了Python中BaseWidget.BaseWidget.set_event_manager方法的典型用法代码示例。如果您正苦于以下问题:Python BaseWidget.set_event_manager方法的具体用法?Python BaseWidget.set_event_manager怎么用?Python BaseWidget.set_event_manager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseWidget.BaseWidget
的用法示例。
在下文中一共展示了BaseWidget.set_event_manager方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set_event_manager
# 需要导入模块: from BaseWidget import BaseWidget [as 别名]
# 或者: from BaseWidget.BaseWidget import set_event_manager [as 别名]
def set_event_manager(self, manager):
"""C.set_event_manager (...) -> None
Sets the event manager of the Container.
Adds the Container to an event manager and causes its children
to be added to the same, too.
"""
BaseWidget.set_event_manager(self, manager)
for child in self.children:
child.set_event_manager(manager)
示例2: set_event_manager
# 需要导入模块: from BaseWidget import BaseWidget [as 别名]
# 或者: from BaseWidget.BaseWidget import set_event_manager [as 别名]
def set_event_manager (self, manager):
"""B.set_event_manager (...) -> None
Sets the event manager of the Bin.
Adds the Bin to an event manager and causes its child to be
added to the same, too.
"""
BaseWidget.set_event_manager (self, manager)
if self.child:
self.child.set_event_manager (manager)