Package traylib :: Module tray_applet :: Class TrayApplet
[frames] | no frames]

Class TrayApplet

source code

              rox.g.Plug --+    
                           |    
           rox.applet.Applet --+
                               |
tray_container.TrayContainer --+
                               |
                              TrayApplet

An applet showing a Tray.

Instance Methods
 
__init__(self, xid, min_size, max_size, tray_class, icon_config, tray_config, *tray_args)
Creates a new TrayApplet.
source code
 
get_icon_size(self)
Returns: 0.75 times the width (if vertical) or height of the panel.
source code
 
get_panel_orientation(self)
Returns: The panel orientation ('Top', 'Bottom', 'Left', 'Right')
source code

Inherited from rox.applet.Applet: is_vertical_panel, position_menu

Inherited from tray_container.TrayContainer: update_icon_size

Method Details

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

source code 

Creates a new TrayApplet.

Parameters:
  • xid - The XID of a gtk.Socket widget.
Overrides: tray_container.TrayContainer.__init__

get_icon_size(self)

source code 

Extend this to determine the maximum icon size.

Returns:
0.75 times the width (if vertical) or height of the panel.
Overrides: tray_container.TrayContainer.get_icon_size

get_panel_orientation(self)

source code 
Returns:
The panel orientation ('Top', 'Bottom', 'Left', 'Right')