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