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 = {}
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
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)
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 )
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
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
def __init__(self): SingleWindow.__init__(self) self.window = None
def __init__(self, **config): SingleWindow.__init__(self, **config) self.clients = [] self.add_defaults(Max.defaults)
def __init__(self): SingleWindow.__init__(self) self.clients = []
def clone(self, group): c = SingleWindow.clone(self, group) c._focused = None c._panel = None c._tree = Root(self.sections) return c
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
def __init__(self, **config): SingleWindow.__init__(self, **config) self.clients = [] self.lastfocus = None
def clone(self, group): c = SingleWindow.clone(self, group) c.clients = [] return c
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
def layout(self, windows, screen): panel, body = screen.hsplit(self.panel_width) self._resize_panel(panel) SingleWindow.layout(self, windows, body)
def __init__(self, **config): SingleWindow.__init__(self, **config) self.add_defaults(Zoomy.defaults) self.clients = [] self.lastfocus = None
def __init__(self, **config): SingleWindow.__init__(self, **config) self.clients = []
def info(self): d = SingleWindow.info(self) d["clients"] = [x.name for x in self.clients] return d
def __init__(self, **config): SingleWindow.__init__(self, **config) self.add_defaults(Zoomy.defaults) self.clients = [] self.focused = None
def __init__(self, **config): SingleWindow.__init__(self, **config) self.clients = [] self.add_defaults(Max.defaults) self.focused = None