Package traylib :: Module tray_window :: Class TrayWindow
[frames] | no frames]

Class TrayWindow

source code

                    ??-8 --+    
                           |    
                  rox.Window --+
                               |
tray_container.TrayContainer --+
                               |
                              TrayWindow

A window showing a Tray.

Instance Methods
 
__init__(self, min_size, max_size, tray_class, icon_config, tray_config, *tray_args)
Creates a new TrayWindow.
source code
 
get_icon_size(self)
Returns: Half the height of the window.
source code

Inherited from tray_container.TrayContainer: update_icon_size

Method Details

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

source code 

Creates a new TrayWindow.

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.
Overrides: tray_container.TrayContainer.__init__

get_icon_size(self)

source code 

Extend this to determine the maximum icon size.

Returns:
Half the height of the window.
Overrides: tray_container.TrayContainer.get_icon_size