当前位置: 首页>>代码示例>>Python>>正文


Python base.Layout类代码示例

本文整理汇总了Python中base.Layout的典型用法代码示例。如果您正苦于以下问题:Python Layout类的具体用法?Python Layout怎么用?Python Layout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Layout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self, ratio=0.618, masterWindows = 1, expand=True):
     Layout.__init__(self)
     self.clients = []
     self.ratio = ratio
     self.master = masterWindows
     self.focused = None
     self.expand = expand
开发者ID:bavardage,项目名称:qtile,代码行数:7,代码来源:tile.py

示例2: __init__

 def __init__(self, stacks=2, **config):
     """
         - stacks: Number of stacks to start with.
     """
     Layout.__init__(self, **config)
     self.stacks = [_WinStack() for i in range(stacks)]
     self.add_defaults(Stack.defaults)
开发者ID:Echota,项目名称:qtile,代码行数:7,代码来源:stack.py

示例3: __init__

 def __init__(self, **config):
     Layout.__init__(self, **config)
     self.add_defaults(Stack.defaults)
     self.stacks = [_WinStack() for i in range(self.num_stacks)]
     for stack in self.stacks:
         if self.autosplit:
             stack.split = True
开发者ID:AlexandreAbraham,项目名称:qtile,代码行数:7,代码来源:stack.py

示例4: __init__

 def __init__(self, ratio=0.618, masterWindows=1, expand=True, ratio_increment=0.05, **config):
     Layout.__init__(self, **config)
     self.clients = []
     self.ratio = ratio
     self.master = masterWindows
     self.focused = None
     self.expand = expand
     self.ratio_increment = ratio_increment
开发者ID:bl4ckb1rd,项目名称:qtile,代码行数:8,代码来源:tile.py

示例5: __init__

 def __init__(self, ratio=GOLDEN_RATIO, ratio_increment=0.1, fancy=False, **config):
     Layout.__init__(self, **config)
     self.windows = []
     self.ratio_increment = ratio_increment
     self.ratio = ratio
     self.focused = None
     self.dirty = True # need to recalculate
     self.layout_info = []
     self.last_size = None
     self.fancy = fancy
开发者ID:andrelaszlo,项目名称:qtile,代码行数:10,代码来源:ratiotile.py

示例6: __init__

 def __init__(self, stacks=2, wmii_style=False, **config):
     """
         - stacks: Number of stacks to start with.
         - wmii_style: if True, when trying to move a client to a non-existing
         stack, a new stak will be created to contain the client.
         (off by default)
     """
     Layout.__init__(self, **config)
     self.wmii_style = wmii_style
     self.stacks = [_WinStack() for i in range(stacks)]
开发者ID:yannicklm,项目名称:qtile,代码行数:10,代码来源:stack.py

示例7: __init__

 def __init__(self, ratio=0.618, masterWindows=1, expand=True,
     ratio_increment=0.05, add_on_top=True, shift_windows=False, **config):
     Layout.__init__(self, **config)
     self.clients = []
     self.ratio = ratio
     self.master = masterWindows
     self.focused = None
     self.expand = expand
     self.ratio_increment = ratio_increment
     self.add_on_top = add_on_top
     self.shift_windows = shift_windows
开发者ID:Cadair,项目名称:qtile,代码行数:11,代码来源:tile.py

示例8: __init__

 def __init__(self, ratio=GOLDEN_RATIO, ratio_increment=0.1,
              fancy=False, **config):
     Layout.__init__(self, **config)
     self.add_defaults(RatioTile.defaults)
     self.clients = []
     self.ratio_increment = ratio_increment
     self.ratio = ratio
     self.focused = None
     self.dirty = True  # need to recalculate
     self.layout_info = []
     self.last_size = None
     self.last_screen = None
     self.fancy = fancy
开发者ID:AlexandreAbraham,项目名称:qtile,代码行数:13,代码来源:ratiotile.py

示例9: clone

 def clone(self, group):
     c = Layout.clone(self, group)
     # These are mutable
     c.stacks = [_WinStack() for i in self.stacks]
     for stack in c.stacks:
         if self.autosplit:
             stack.split = True
     return c
开发者ID:AlexandreAbraham,项目名称:qtile,代码行数:8,代码来源:stack.py

示例10: info

 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
开发者ID:AlexandreAbraham,项目名称:qtile,代码行数:9,代码来源:matrix.py

示例11: __init__

    def __init__(self, float_rules=None, **config):
        """
        If you have certain apps that you always want to float you can
        provide ``float_rules`` to do so.
        ``float_rules`` is a list of dictionaries containing:
        
        {wmname: WM_NAME, wmclass: WM_CLASS
        role: WM_WINDOW_ROLE}

        The keys must be specified as above.  You only need one, but
        you need to provide the value for it.  When a new window is
        opened it's ``match`` method is called with each of these
        rules.  If one matches, the window will float.  The following
        will float gimp and skype:

        float_rules=[dict(wmclass="skype"), dict(wmclass="gimp")]

        Specify these in the ``floating_layout`` in your config.
        """
        Layout.__init__(self, **config)
        self.clients = []
        self.focused = None
        self.float_rules = float_rules or []
开发者ID:mattharrison,项目名称:qtile,代码行数:23,代码来源:floating.py

示例12: clone

 def clone(self, group):
     c = Layout.clone(self, group)
     c.clients = []
     return c
开发者ID:andrelaszlo,项目名称:qtile,代码行数:4,代码来源:tile.py

示例13: __init__

 def __init__(self):
     Layout.__init__(self)
     self.clients = []
开发者ID:bavardage,项目名称:qtile,代码行数:3,代码来源:max.py

示例14: __init__

 def __init__(self, **config):
     Layout.__init__(self, **config)
     self._focused = None
     self._panel = None
     self._tree = Root(self.sections)
     self._nodes = {}
开发者ID:bl4ckb1rd,项目名称:qtile,代码行数:6,代码来源:tree.py

示例15: clone

 def clone(self, group):
     c = Layout.clone(self, group)
     c._focused = None
     c._panel = None
     c._tree = Root(self.sections)
     return c
开发者ID:bl4ckb1rd,项目名称:qtile,代码行数:6,代码来源:tree.py


注:本文中的base.Layout类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。