Package traylib :: Module main :: Class Main
[frames] | no frames]

Class Main

source code

object --+
         |
        Main

Instance Methods
 
__init__(self, name)
Creates a new Main object.
source code
 
init_options(self) source code
 
init_config(self) source code
 
mainloop(self, app_args, tray_class, *tray_args)
Starts the main loop and returns when the tray app is quit.
source code
 
options_changed(self)
Called when the options have changed.
source code

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

Class Variables
  icon_config = property(lambda self: self.__icon_config)
  tray_config = property(lambda self: self.__tray_config)
Properties

Inherited from object: __class__

Method Details

__init__(self, name)
(Constructor)

source code 

Creates a new Main object.

Overrides: object.__init__

mainloop(self, app_args, tray_class, *tray_args)

source code 

Starts the main loop and returns when the tray app is quit.

Parameters:
  • app_args - The arguments passed to the app.
  • tray_class - The type of tray. Must be a subclass of Tray.
  • *tray_args - Additional args for the Tray subclass.