本文整理汇总了Python中base.Layout.info方法的典型用法代码示例。如果您正苦于以下问题:Python Layout.info方法的具体用法?Python Layout.info怎么用?Python Layout.info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base.Layout
的用法示例。
在下文中一共展示了Layout.info方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: info
# 需要导入模块: from base import Layout [as 别名]
# 或者: from base.Layout import info [as 别名]
def info(self):
d = Layout.info(self)
d["rows"] = [
[win.name for win in self.get_row(i)]
for i in xrange(self.get_num_rows())
]
d["current_window"] = self.current_window
d["clients"] = [x.name for x in self.clients]
return d
示例2: info
# 需要导入模块: from base import Layout [as 别名]
# 或者: from base.Layout import info [as 别名]
def info(self):
d = Layout.info(self)
d["stacks"] = [i.info() for i in self.stacks]
d["current_stack"] = self.currentStackOffset
return d
示例3: info
# 需要导入模块: from base import Layout [as 别名]
# 或者: from base.Layout import info [as 别名]
def info(self):
d = Layout.info(self)
d["stacks"] = [i.info() for i in self.stacks]
d["current_stack"] = self.currentStackOffset
d["clients"] = [c.name for c in self.clients]
return d
示例4: info
# 需要导入模块: from base import Layout [as 别名]
# 或者: from base.Layout import info [as 别名]
def info(self):
d = Layout.info(self)
d["clients"] = [i.name for i in self.clients]
return d
示例5: info
# 需要导入模块: from base import Layout [as 别名]
# 或者: from base.Layout import info [as 别名]
def info(self):
d = Layout.info(self)
d["clients"] = [i.name for i in self._nodes]
d["sections"] = [i.title for i in self._tree.children]
return d