Package traylib :: Module tray_config :: Class TrayConfig
[frames] | no frames]

Class TrayConfig

source code

   object --+    
            |    
config.Config --+
                |
               TrayConfig

Instance Methods
 
__init__(self, name, menus, separators)
Creates a new TrayConfig.
source code

Inherited from config.Config: add_attribute, add_configurable, get_attribute, has_configurable, remove_configurable, set_attribute

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  name = property(lambda self: self.get_attribute('name'), lambd...
  menus = property(lambda self: self.get_attribute('menus'), lam...
  separators = property(lambda self: self.get_attribute('separat...
Properties

Inherited from object: __class__

Method Details

__init__(self, name, menus, separators)
(Constructor)

source code 

Creates a new TrayConfig.

Parameters:
  • name - The name of the tray.
  • menus - Where to show boxes for the main menu: LEFT, RIGHT or LEFT|RIGHT.
  • separators - Where to show separators (may be 0).
Overrides: object.__init__

Class Variable Details

name

Value:
property(lambda self: self.get_attribute('name'), lambda self, name: s\
elf.set_attribute('name', name))

menus

Value:
property(lambda self: self.get_attribute('menus'), lambda self, menus:\
 self.set_attribute('menus', menus))

separators

Value:
property(lambda self: self.get_attribute('separators'), lambda self, s\
eparators: self.set_attribute('separators', separators))