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

Class Fl_Hold_Browser


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.
  add(self, item)
Adds a string to the end of the list
  callback(self, func)
Sets the callback to be triggered when the button gets pushed.
  clear(self)
Removes all items from list
  color(self, colornum)
Sets the background colour in the Hold browser widget
  find(self, itemstr)
  hide(self)
probably not much point to this either
  itemtext(self, itemidx)
Returns the text of the given item index
  remove(self, item)
Removes an item (index) from the end of the list
  selectioncolor(self, colornum)
Sets the colour of selections in the Hold browser widget
  show(self)
probably not much point to this
  textcolor(self, colornum)
Sets the colour of text in the Hold browser widget
  value(self, val)
Gets or sets the value selected.

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

add(self, item)

Adds a string to the end of the list

callback(self, func)

Sets the callback to be triggered when the button gets pushed.

Argument:
  • func - a callable object, eg function, bound method, to be invoked when an item in the listbox gets selected. Note that at this stage, the callable you provide will be called with no arguments.

clear(self)

Removes all items from list

color(self, colornum)

Sets the background colour in the Hold browser widget

hide(self)

probably not much point to this either

itemtext(self, itemidx)

Returns the text of the given item index

remove(self, item)

Removes an item (index) from the end of the list

selectioncolor(self, colornum)

Sets the colour of selections in the Hold browser widget

show(self)

probably not much point to this

textcolor(self, colornum)

Sets the colour of text in the Hold browser widget

value(self, val=None)

Gets or sets the value selected. Value is an index into the list of displayed values

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