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

Class Fl_Input


Creates and manages listbox widgets for use in Fl_Window popup windows.
Method Summary
  __init__(self, x, y, w, h, label)
Creates a button widget.
  callback(self, func)
Sets the callback to be triggered when user presses ENTER.
  color(self, colornum)
Sets the background colour in the input widget
  selectioncolor(self, colornum)
Sets the colour of selections in the input widget
  take_focus(self)
Causes the input field to take focus
  textcolor(self, colornum)
Sets the colour of text in the input widget
  value(self, txt)
Gets or sets the displayed text

Method Details

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

Creates a button widget.

Arguments:
  • x, y, w, h - x and y-position within window, width and height
  • label - text to put on the browser label

callback(self, func)

Sets the callback to be triggered when user presses ENTER.

Argument:
  • func - a callable object, eg function, bound method, to be invoked when the user presses ENTER. Note that at this stage, the callable you provide will be called with no arguments.

color(self, colornum)

Sets the background colour in the input widget

selectioncolor(self, colornum)

Sets the colour of selections in the input widget

take_focus(self)

Causes the input field to take focus

textcolor(self, colornum)

Sets the colour of text in the input widget

value(self, txt=None)

Gets or sets the displayed text

Arguments:
  • txt - if provided, sets the field to display this. If not provided, does not change the field
Returns:
  • Always returns the text in the field

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