blindstation.widget
index
/home/sable/test/blindstation-1.0.7/blindstation-1.0.7/test/blindstation/widget.py

Widget related classes

 
Modules
       
blindstation
string
weakref

 
Classes
       
__builtin__.object
Widget

 
class Widget(__builtin__.object)
    Widget is a display component
 
  Methods defined here:
__del__(self)
__init__(self, scene, name, state=None)
create(self, focus)
get_accept_focus(self)
get_alt(self)
get_altimg(self)
get_background(self)
get_color(self)
get_flexikeys(self)
get_focus_callback(self)
get_focus_color(self)
get_focus_text_color(self)
get_font(self)
get_hidden(self)
get_rect(self)
get_shortcuts(self)
get_state(self)
get_text(self)
get_text_color(self)
get_textpos(self)
get_validate_callback(self)
run(self, event)
set_accept_focus(self, focus)
set_alt(self, alt)
set_altimg(self, altimg)
set_background(self, background)
set_color(self, color)
set the background color with the red, green, blue and apha component
values can be between 0-255 with a=0 for transparent and a=255 for solid
set_flexikeys(self, flexikeys)
set_focus_callback(self, callback)
set_focus_color(self, color)
set the background focus color with the red, green, blue and apha component
values can be between 0-255 with a=0 for transparent and a=255 for solid
set_focus_text_color(self, color)
set the background focus color with the red, green, blue and apha component
values can be between 0-255 with a=0 for transparent and a=255 for solid
set_font(self, file, size)
set_hidden(self, state)
set_rect(self, rect)
set_shortcuts(self, shortcuts)
set_state(self, name)
set_text(self, text)
set_text_color(self, color)
set the background color with the red, green, blue component
values can be between 0-255
set_textpos(self, position)
set_validate_callback(self, callback)
update(self, focus)

Properties defined here:
accept_focus
whether or not the widget accept the focus
get = get_accept_focus(self)
set = set_accept_focus(self, focus)
alt
Aternative text to be displayed by the widget on a Braille display
get = get_alt(self)
set = set_alt(self, alt)
altimg
Alternative background picture to be displayed by the widget in zoom mode
get = get_altimg(self)
set = set_altimg(self, altimg)
background
Background picture to be displayed by the widget
get = get_background(self)
set = set_background(self, background)
color
The backgroung color attribut
get = get_color(self)
set = set_color(self, color)
flexikeys
Code of flexiboard keys used has shortcuts for this widget
get = get_flexikeys(self)
set = set_flexikeys(self, flexikeys)
focus_callback
Callback to be called when the widget as the focus
get = get_focus_callback(self)
set = set_focus_callback(self, callback)
focus_color
The backgroung focus color attribut
get = get_focus_color(self)
set = set_focus_color(self, color)
focus_text_color
The focused text color attribut
get = get_focus_text_color(self)
set = set_focus_text_color(self, color)
hidden
Determine if the widget is visible or not
get = get_hidden(self)
set = set_hidden(self, state)
rect
The rect occupied by the widget on the screen
get = get_rect(self)
set = set_rect(self, rect)
shortcuts
Code of keys used has shortcuts for this widget
get = get_shortcuts(self)
set = set_shortcuts(self, shortcuts)
state
State of the widget relating to the xml resource file
get = get_state(self)
set = set_state(self, name)
text
Text to be displayed by the widget
get = get_text(self)
set = set_text(self, text)
text_color
The text color attribut
get = get_text_color(self)
set = set_text_color(self, color)
textpos
position of text in the widget
get = get_textpos(self)
set = set_textpos(self, position)
validate_callback
Callback to be called when the widget is validated
get = get_validate_callback(self)
set = set_validate_callback(self, callback)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Widget' objects>
list of weak references to the object (if defined)