Package traylib :: Module winicon_config
[frames] | no frames]

Source Code for Module traylib.winicon_config

 1  from traylib import * 
 2  from traylib.config import Config 
 3   
 4   
5 -class WinIconConfig(Config):
6
7 - def __init__(self, 8 all_workspaces, 9 arrow):
10 """ 11 Creates a new C{WinIconConfig}. 12 13 @param all_workspaces: If C{True}, windows on all workspaces should be 14 visible in the L{WinIcon}'s menu. 15 @param arrow: If C{True}, the L{WinIcon}s associated with the 16 C{WinIconConfig} have an arrow on them when they have more than one 17 visible window. 18 """ 19 20 Config.__init__(self) 21 22 self.add_attribute('all_workspaces', all_workspaces, 'update_option_all_workspaces') 23 self.add_attribute('arrow', arrow, 'update_option_arrow')
24 25 26 all_workspaces = property(lambda self : self.get_attribute('all_workspaces'), 27 lambda self, all_workspaces : self.set_attribute('all_workspaces', all_workspaces)) 28 """ 29 C{True}, if windows on all workspaces should be visible in the associated L{WinIcon}s' menus. 30 """ 31 32 arrow = property(lambda self : self.get_attribute('arrow'), 33 lambda self, arrow : self.set_attribute('arrow', arrow)) 34 """ 35 C{True}, if the L{WinIcon}s associated with the C{WinIconConfig} should have an arrow on 36 them when they have more than one visible window. 37 """
38