Package pywm :: Class appletBar
[show private | hide private]
[frames | no frames]

Class appletBar


A virtual container for applets.

Alloes applets to be added sequentially, and manages the sizing and placement of these applets
Method Summary
  __init__(self, wm, x, y, thickness, direction)
Creates an applet bar, to which applets can be added
  add(self, appletclass, length, *args, **kw)
Adds an applet to the virtual applet bar

Method Details

__init__(self, wm, x, y, thickness, direction)
(Constructor)

Creates an applet bar, to which applets can be added

Arguments:
  • wm - ref to window manager
  • x, y - origin of applet bar on screen
  • thickness - thickness of applet bar in pixels
  • direction - 'up', 'down', 'left', 'right' - direction in which applets get added

add(self, appletclass, length, *args, **kw)

Adds an applet to the virtual applet bar

Arguments:
  • appletclass - one of the classes in pywm.applets
  • thickness - if applet bar is vertical, this is height. Otherwise, this is width.
  • any other applet-dependent args, also keywords

Generated by Epydoc 2.1 on Mon Feb 27 15:47:09 2006 http://epydoc.sf.net