本文整理汇总了Python中base.SingleWindow.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python SingleWindow.__init__方法的具体用法?Python SingleWindow.__init__怎么用?Python SingleWindow.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base.SingleWindow
的用法示例。
在下文中一共展示了SingleWindow.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from base import SingleWindow [as 别名]
# 或者: from base.SingleWindow import __init__ [as 别名]
def __init__(self, **config):
SingleWindow.__init__(self, **config)
self.add_defaults(TreeTab.defaults)
self._focused = None
self._panel = None
self._tree = Root(self.sections)
self._nodes = {}
示例2: __init__
# 需要导入模块: from base import SingleWindow [as 别名]
# 或者: from base.SingleWindow import __init__ [as 别名]
def __init__(self, ratio=_med_ratio, align=_left, change_ratio=.05, change_size=20, **config):
"""
- ratio : The percent of the screen-space the
master pane should occupy by default.
- align : Which side the master pane will be placed.
- change_size : Resize change in pixels
"""
SingleWindow.__init__( self, **config)
self.clients = []
self.sizes = []
self.ratio = ratio
self.align = align
self.change_size = change_size
self.change_ratio = change_ratio
self._focus = 0
示例3: __init__
# 需要导入模块: from base import SingleWindow [as 别名]
# 或者: from base.SingleWindow import __init__ [as 别名]
def __init__(self, **config):
SingleWindow.__init__(self, **config)
self.add_defaults(Zoomy.defaults)
self.clients = []
self.focused = None
示例4: __init__
# 需要导入模块: from base import SingleWindow [as 别名]
# 或者: from base.SingleWindow import __init__ [as 别名]
def __init__(self):
SingleWindow.__init__(self)
self.window = None
示例5: __init__
# 需要导入模块: from base import SingleWindow [as 别名]
# 或者: from base.SingleWindow import __init__ [as 别名]
def __init__(self, **config):
SingleWindow.__init__(self, **config)
self.clients = []
self.add_defaults(Max.defaults)
示例6: __init__
# 需要导入模块: from base import SingleWindow [as 别名]
# 或者: from base.SingleWindow import __init__ [as 别名]
def __init__(self):
SingleWindow.__init__(self)
self.clients = []
示例7: __init__
# 需要导入模块: from base import SingleWindow [as 别名]
# 或者: from base.SingleWindow import __init__ [as 别名]
def __init__(self, **config):
SingleWindow.__init__(self, **config)
self.clients = []
示例8: __init__
# 需要导入模块: from base import SingleWindow [as 别名]
# 或者: from base.SingleWindow import __init__ [as 别名]
def __init__(self, **config):
SingleWindow.__init__(self, **config)
self.clients = []
self.lastfocus = None