Package traylib :: Module tray_container :: Class TrayContainer
[frames] | no frames]

Class TrayContainer

source code

An object containing a Tray. If you subclass this, you must also subclass gtk.Container.

Instance Methods
 
__init__(self, min_size, max_size, vertical, tray_class, icon_config, tray_config, *tray_args)
Creates a new TrayContainer.
source code
 
update_icon_size(self, min_size, max_size)
Updates the size of the tray's icons and sets the maximum icon size.
source code
 
get_icon_size(self)
Extend this to determine the maximum icon size.
source code
Method Details

__init__(self, min_size, max_size, vertical, tray_class, icon_config, tray_config, *tray_args)
(Constructor)

source code 

Creates a new TrayContainer.

Parameters:
  • min_size - The minimum size of the icons.
  • max_size - The maximum size of the icons.
  • vertical - True if the tray should be vertical.
  • tray_class - The class of the tray to be created. Must be a subclass of Tray.
  • icon_config - The IconConfig.
  • tray_config - The TrayConfig.
  • *tray_args - Additional arguments passed to the tray_class's constructor.

update_icon_size(self, min_size, max_size)

source code 

Updates the size of the tray's icons and sets the maximum icon size.

Parameters:
  • min_size - The minimum icon size.
  • max_size - The maximum icon size.

get_icon_size(self)

source code 

Extend this to determine the maximum icon size.

Returns:
The maximum icon size.