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

Class appletBase

Fl_Window --+
            |
           appletBase


Base class for applet windows

The applet should register its callbacks as handlers by calling self.addHandlers()
Method Summary
  __init__(self, wm, x, y, w, h)
Creates an applet window.
  addHandlers(self, **handlers)
Adds a set of handlers for various events
    Inherited from Fl_Window
  activate(self)
Tries to activate this window and make it receive events
  end(self, arg)
End a window's definition phase.
  hide(self, arg)
Hide the window
  move(self, x, y)
Move the window to x, y
  on_click(self, but, x, y)
Called when the mouse enters this window.
  on_enter(self, x, y)
Called when the mouse enters this window.
  set_modal(self)
Tries to activate this window and make it receive events
  show(self, arg)
Make the window visible
  stayOnTop(self)
Bring the window to the top where it will hopefully stay.

Method Details

__init__(self, wm, x, y, w, h)
(Constructor)

Creates an applet window.

Arguments:
  • wm - ref to the window manager
  • x, y - location of applet on screen
  • w, h - size of applet window
Overrides:
pywm.Fl_Window.__init__

addHandlers(self, **handlers)

Adds a set of handlers for various events

handlers are declared as keywords. See doc for WM.addHandlers for details

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