Part of elisa.plugins.pigment.widgets.range View In Hierarchy
Known subclasses: elisa.plugins.pigment.widgets.progressbar.ProgressBar, elisa.plugins.pigment.widgets.scrollbar.ScrollBar, elisa.plugins.pigment.widgets.slider.Slider
The range widget provides the common interface and implementation to set a value in a range of values.
Emit the signals:Instance Variables | items_number | the number of items in the range (type: int ) |
current_index | the current value, from 0 to (items_number - 1) (type: int ) |
Line # | Kind | Name | Docs |
---|---|---|---|
49 | Method | __init__ | Set the default styles for the widget. Subclasses should override and |
142 | Method | items_number__get | Undocumented |
145 | Method | items_number__set | Set the number of items in the range. Minumum is 1. If the range has |
168 | Method | current_index__get | Undocumented |
171 | Method | current_index__set | Set the position of the cursor. The bar is automatically new painted |
255 | Method | do_index_changed | Default 'index-changed' signal handler |
259 | Method | do_scrolled | Undocumented |
266 | Method | do_key_press_event | Default 'key-press-event' signal handler. |
272 | Method | do_focus | Undocumented |
278 | Method | do_clicked | Undocumented |
76 | Method | _update_style_properties | Update the widget's appearence basing on the properties set. |
88 | Method | _set_background | Undocumented |
108 | Method | _get_background | Undocumented |
113 | Method | _set_cursor | Undocumented |
137 | Method | _get_cursor | Undocumented |
186 | Method | _update_cursor_size | Undocumented |
205 | Method | _update_cursor_position | Undocumented |
222 | Method | _drag_begin | Undocumented |
231 | Method | _pressed | Undocumented |
234 | Method | _drag_motion | Undocumented |
248 | Method | _drag_end | Undocumented |
282 | Method | _get_index_from_position | Undocumented |
290 | Class Method | _demo_widget | Meant to be overidden by inheriting widgets for widget creation and |
Inherited from Widget:
Line # | Kind | Name | Docs |
---|---|---|---|
136 | Method | state__get | The present state of the widget |
140 | Method | state__set | Set the state of the widget and emit the "state-changed" signal if |
157 | Method | do_state_changed | Default 'state-changed' handler |
164 | Method | style__get | The present style |
168 | Method | style__set | Set the present style, after binding it to the widget and subscribing |
195 | Method | do_style_set | Default 'style-set' signal handler |
217 | Method | get_parent | Get the parent, if exists. |
225 | Method | get_children | Get the list of direct children. |
233 | Method | get_root | Get the root of the widget's tree hierarchy |
244 | Method | get_descendants | Get the list of nodes in the subtree |
258 | Method | focus__get | Whether the widget has focus |
262 | Method | focus__set | Set or unset the focus on the widget and emit the 'focus' signal. |
290 | Method | focus_child__get | Get the child with focus |
313 | Method | clean | Undocumented |
367 | Class Method | demo | Create a demo widget, put it on a canvas and show it in a viewport. |
93 | Method | _init_styles | Undocumented |
191 | Method | _style_property_changed | Undocumented |
310 | Method | _do_real_key_press_event | Undocumented |
320 | Class Method | _demo_create_viewport | Undocumented |
327 | Class Method | _on_demo_delete | Undocumented |
346 | Class Method | _set_demo_widget_defaults | Undocumented |
Inherited from Group (via Widget):
Line # | Kind | Name | Docs |
---|---|---|---|
85 | Method | canvas__set | Undocumented |
105 | Method | canvas__get | Undocumented |
110 | Method | layer__set | Undocumented |
123 | Method | layer__get | Undocumented |
131 | Method | add | Undocumented |
173 | Method | remove | Undocumented |
192 | Method | empty | Undocumented |
202 | Method | __len__ | Undocumented |
205 | Method | __iter__ | Undocumented |
208 | Method | update_absolute_x | Undocumented |
215 | Method | update_absolute_y | Undocumented |
222 | Method | update_absolute_z | Undocumented |
229 | Method | update_absolute_position | Undocumented |
236 | Method | update_absolute_width | Undocumented |
245 | Method | update_absolute_height | Undocumented |
254 | Method | update_absolute_size | Undocumented |
263 | Method | update_absolute_visible | Undocumented |
268 | Method | update_absolute_opacity | Undocumented |
274 | Method | regenerate | Undocumented |
161 | Method | _proxy_child_signal_scrolled | Undocumented |
165 | Method | _proxy_child_signal | Undocumented |
169 | Method | _proxy_child_signal_with_pressure | Undocumented |
Inherited from Node (via Widget, Group):
Line # | Kind | Name | Docs |
---|---|---|---|
39 | Method | absolute_width__get | Undocumented |
42 | Method | absolute_width__set | Undocumented |
47 | Method | absolute_height__get | Undocumented |
50 | Method | absolute_height__set | Undocumented |
55 | Method | absolute_x__get | Undocumented |
58 | Method | absolute_x__set | Undocumented |
64 | Method | absolute_y__get | Undocumented |
67 | Method | absolute_y__set | Undocumented |
73 | Method | absolute_z__get | Undocumented |
76 | Method | absolute_z__set | Undocumented |
82 | Method | parent__set | Undocumented |
102 | Method | parent__get | Undocumented |
107 | Method | x__get | Undocumented |
113 | Method | x__set | Undocumented |
129 | Method | y__get | Undocumented |
135 | Method | y__set | Undocumented |
152 | Method | z__get | Undocumented |
158 | Method | z__set | Undocumented |
175 | Method | position__get | Undocumented |
181 | Method | position__set | Undocumented |
205 | Method | width__get | Undocumented |
211 | Method | width__set | Undocumented |
229 | Method | height__get | Undocumented |
235 | Method | height__set | Undocumented |
255 | Method | size__get | Undocumented |
261 | Method | size__set | Undocumented |
281 | Method | visible__get | Undocumented |
287 | Method | visible__set | Undocumented |
305 | Method | opacity__get | Undocumented |
311 | Method | opacity__set | Undocumented |
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.Parameters | props | the properties that have to be updated (type: dictionary of strings ==> anything ) |
Parameters | nb | the number of items (type: int ) |
Parameters | position | the position to set to (type: int ) |
Default 'key-press-event' signal handler.
Forward the signal to the focused child, if any.Returns | elisa.plugins.pigment.widgets.Widget
|