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

Class Fl_Window

Known Subclasses:
appletBase

This class allows you to create popup windows for user interaction.

The windows are created/managed by the FLTK graphical toolkit (which the FLWM engine uses), and are not managed as application windows (meaning - no border, no window handle etc).

The python interface to Fl_Window is a close subset of the FLTK Fl_Window class (refer to your FLTK manual - http://fltk.sf.net if you don't have it locally).
Method Summary
  __init__(self, x, y, w, h, label)
Creates a new window manager popup 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, x, y, w, h, label='')
(Constructor)

Creates a new window manager popup window.

Arguments:
  • x, y, w, h - x-position, y-position, width and height
  • label - probably no point to this since there's no titlebar

activate(self)

Tries to activate this window and make it receive events

end(self, arg=None)

End a window's definition phase. Call this after all widgets have been added to the window

hide(self, arg=None)

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. If you override this, you must accept three args, but, x and y, which will be the button number, and the position of the mouse on entry.

on_enter(self, x, y)

Called when the mouse enters this window. If you override this, you must accept 2 args, x and y, which will be the position of the mouse on entry.

set_modal(self)

Tries to activate this window and make it receive events

show(self, arg=None)

Make the window visible

stayOnTop(self)

Bring the window to the top where it will hopefully stay.

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