Example #1
0
 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 = {}
Example #2
0
 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 = {}
Example #3
0
File: zoomy.py Project: AdamG/qtile
 def focus(self, win):
     old = self.lastfocus
     if old and self.property_name:
         old.window.set_property(self.property_name,
             self.property_small, "STRING", format=8)
     SingleWindow.focus(self, win)
     if self.property_name:
         win = self.clients[0]
         win.window.set_property(self.property_name,
             self.property_big, "STRING", format=8)
     self.lastfocus = win
Example #4
0
 def focus(self, win):
     if self.focused and self.property_name:
         self.focused.window.set_property(self.property_name,
                                          self.property_small,
                                          "STRING",
                                          format=8)
     SingleWindow.focus(self, win)
     if self.property_name:
         self.focused = win
         win.window.set_property(self.property_name,
                                 self.property_big,
                                 "STRING",
                                 format=8)
Example #5
0
 def focus(self, win):
     old = self.lastfocus
     if old and self.property_name:
         old.window.set_property(self.property_name,
                                 self.property_small,
                                 "STRING",
                                 format=8)
     SingleWindow.focus(self, win)
     if self.property_name:
         win = self.clients[0]
         win.window.set_property(self.property_name,
                                 self.property_big,
                                 "STRING",
                                 format=8)
     self.lastfocus = win
Example #6
0
 def focus(self, win):
     if self.focused and self.property_name:
         self.focused.window.set_property(
             self.property_name,
             self.property_small,
             "STRING",
             format=8
         )
     SingleWindow.focus(self, win)
     if self.property_name:
         self.focused = win
         win.window.set_property(
             self.property_name,
             self.property_big,
             "STRING",
             format=8
         )
Example #7
0
    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
Example #8
0
    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
Example #9
0
 def clone(self, group):
     "Clone layout for other groups"
     c = SingleWindow.clone(self, group)
     c.clients = []
     c.sizes = []
     c.ratio = self.ratio
     c.align = self.align
     c._focus = 0
     return c
Example #10
0
 def clone(self, group):
     "Clone layout for other groups"
     c = SingleWindow.clone(self, group)
     c.clients = []
     c.sizes = []
     c.ratio = self.ratio
     c.align = self.align
     c._focus = 0
     return c
Example #11
0
 def __init__(self):
     SingleWindow.__init__(self)
     self.window = None
Example #12
0
File: max.py Project: Echota/qtile
 def __init__(self, **config):
     SingleWindow.__init__(self, **config)
     self.clients = []
     self.add_defaults(Max.defaults)
Example #13
0
 def __init__(self):
     SingleWindow.__init__(self)
     self.clients = []
Example #14
0
 def clone(self, group):
     c = SingleWindow.clone(self, group)
     c._focused = None
     c._panel = None
     c._tree = Root(self.sections)
     return c
Example #15
0
 def info(self):
     d = SingleWindow.info(self)
     d["clients"] = [i.name for i in self._nodes]
     d["sections"] = [i.title for i in self._tree.children]
     return d
Example #16
0
File: zoomy.py Project: AdamG/qtile
 def __init__(self, **config):
     SingleWindow.__init__(self, **config)
     self.clients = []
     self.lastfocus = None
Example #17
0
 def clone(self, group):
     c = SingleWindow.clone(self, group)
     c.clients = []
     return c
Example #18
0
 def info(self):
     d = SingleWindow.info(self)
     d["clients"] = [x.name for x in self._nodes]
     d["sections"] = [x.title for x in self._tree.children]
     return d
Example #19
0
 def layout(self, windows, screen):
     panel, body = screen.hsplit(self.panel_width)
     self._resize_panel(panel)
     SingleWindow.layout(self, windows, body)
Example #20
0
 def __init__(self, **config):
     SingleWindow.__init__(self, **config)
     self.clients = []
     self.lastfocus = None
Example #21
0
 def __init__(self, **config):
     SingleWindow.__init__(self, **config)
     self.add_defaults(Zoomy.defaults)
     self.clients = []
     self.lastfocus = None
Example #22
0
 def __init__(self):
     SingleWindow.__init__(self)
     self.window = None
Example #23
0
 def __init__(self, **config):
     SingleWindow.__init__(self, **config)
     self.clients = []
Example #24
0
 def info(self):
     d = SingleWindow.info(self)
     d["clients"] = [x.name for x in self.clients]
     return d
Example #25
0
 def info(self):
     d = SingleWindow.info(self)
     d["clients"] = [x.name for x in self.clients]
     return d
Example #26
0
 def __init__(self, **config):
     SingleWindow.__init__(self, **config)
     self.add_defaults(Zoomy.defaults)
     self.clients = []
     self.focused = None
Example #27
0
 def __init__(self, **config):
     SingleWindow.__init__(self, **config)
     self.clients = []
     self.add_defaults(Max.defaults)
     self.focused = None
Example #28
0
 def clone(self, group):
     c = SingleWindow.clone(self, group)
     c._focused = None
     c._panel = None
     c._tree = Root(self.sections)
     return c
Example #29
0
 def clone(self, group):
     c = SingleWindow.clone(self, group)
     c.clients = []
     return c
Example #30
0
 def layout(self, windows, screen):
     panel, body = screen.hsplit(self.panel_width)
     self._resize_panel(panel)
     SingleWindow.layout(self, windows, body)
Example #31
0
 def __init__(self, **config):
     SingleWindow.__init__(self, **config)
     self.clients = []