Class e.p.p.w.b.Button(Widget):

Part of elisa.plugins.pigment.widgets.button View In Hierarchy

A simple button with one image and/or one label.
Instance Variablesimagethe path to the image to display (type: string )
labelthe button's label (type: string )
focus_on_clickwhether the button will grab focus when clicked (type: boolean )
Line # Kind Name Docs
42 Method __init__ Add a background drawable to always get the events.
96 Method image__get The path of the image
100 Method image__set Set the image at the specified path, creating the
130 Method label__get Get the text of the label
138 Method label__set Set the label text
159 Method do_focus Undocumented
165 Method do_clicked Undocumented
172 Method do_pressed Undocumented
178 Method do_released Undocumented
185 Method do_key_press_event Default 'key-press-event' signal handler.
78 Method _update_style_properties Update the widget's appearence basing on the properties set.
193 Class Method _demo_widget Meant to be overidden by inheriting widgets for widget creation and

Inherited from Widget:

Line # Kind Name Docs
135 Method state__get The present state of the widget
139 Method state__set Set the state of the widget and emit the "state-changed" signal if
156 Method do_state_changed Default 'state-changed' handler
163 Method style__get The present style
167 Method style__set Set the present style, after binding it to the widget and subscribing
187 Method do_style_set Default 'style-set' signal handler
209 Method get_parent Get the parent, if exists.
217 Method get_children Get the list of direct children.
225 Method get_root Get the root of the widget's tree hierarchy
236 Method get_descendants Get the list of nodes in the subtree
250 Method focus__get Whether the widget has focus
254 Method focus__set Set or unset the focus on the widget and emit the 'focus' signal.
282 Method focus_child__get Get the child with focus
353 Class Method demo Create a demo widget, put it on a canvas and show it in a viewport.
92 Method _init_styles Undocumented
183 Method _style_property_changed Undocumented
302 Method _do_real_key_press_event Undocumented
306 Class Method _demo_create_viewport Undocumented
313 Class Method _on_demo_delete Undocumented
332 Class Method _set_demo_widget_defaults Undocumented

Inherited from Group (via Widget):

Line # Kind Name Docs
82 Method canvas__set Undocumented
102 Method canvas__get Undocumented
107 Method layer__set Undocumented
120 Method layer__get Undocumented
128 Method add Undocumented
162 Method remove Undocumented
176 Method empty Undocumented
186 Method __len__ Undocumented
189 Method __iter__ Undocumented
192 Method update_absolute_x Undocumented
199 Method update_absolute_y Undocumented
206 Method update_absolute_z Undocumented
213 Method update_absolute_position Undocumented
220 Method update_absolute_width Undocumented
229 Method update_absolute_height Undocumented
238 Method update_absolute_size Undocumented
247 Method update_absolute_visible Undocumented
252 Method update_absolute_opacity Undocumented
258 Method regenerate Undocumented
262 Method absolute_width__get Undocumented
265 Method absolute_width__set Undocumented
270 Method absolute_height__get Undocumented
273 Method absolute_height__set Undocumented
278 Method absolute_x__get Undocumented
281 Method absolute_x__set Undocumented
287 Method absolute_y__get Undocumented
290 Method absolute_y__set Undocumented
296 Method absolute_z__get Undocumented
299 Method absolute_z__set Undocumented
305 Method clean Undocumented
150 Method _proxy_child_signal_scrolled Undocumented
154 Method _proxy_child_signal Undocumented
158 Method _proxy_child_signal_with_pressure Undocumented

Inherited from Node (via Widget, Group):

Line # Kind Name Docs
37 Method parent__set Undocumented
57 Method parent__get Undocumented
62 Method x__get Undocumented
68 Method x__set Undocumented
84 Method y__get Undocumented
90 Method y__set Undocumented
107 Method z__get Undocumented
113 Method z__set Undocumented
130 Method position__get Undocumented
136 Method position__set Undocumented
160 Method width__get Undocumented
166 Method width__set Undocumented
184 Method height__get Undocumented
190 Method height__set Undocumented
210 Method size__get Undocumented
216 Method size__set Undocumented
236 Method visible__get Undocumented
242 Method visible__set Undocumented
260 Method opacity__get Undocumented
266 Method opacity__set Undocumented
def __init__(self):
Add a background drawable to always get the events.
def _update_style_properties(self, props=None):

Update the widget's appearence basing on the properties set.

This is intended to be overriden by subclasses, that will implement the actual code to bind style properties to widget ones.
Parameterspropsthe properties that have to be updated (type: dictionary of strings ==> anything )
def image__get(self):
The path of the image
def image__set(self, value):
Set the image at the specified path, creating the elisa.plugins.pigment.graph.image.Image object, adding it to the scenegraph and associating an pgm.timing.implicit.Animated object.
Parametersvaluethe path of the image (type: string )
def label__get(self):
Get the text of the label
def label__set(self, value):
Set the label text
def do_focus(self, value):
Undocumented
def do_clicked(self, x, y, z, button, time, pressure):
Undocumented
def do_pressed(self, x, y, z, button, time, pressure):
Undocumented
def do_released(self, x, y, z, button, time):
Undocumented
def do_key_press_event(self, viewport, event, widget):

Default 'key-press-event' signal handler.

Forward the signal to the focused child, if any.
@classmethod
def _demo_widget(cls, *args, **kwargs):
Meant to be overidden by inheriting widgets for widget creation and setup at demo time.
Returnselisa.plugins.pigment.widgets.Widget
API Documentation for Elisa Media Center, generated by pydoctor at 2008-10-13 19:16:17.