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

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

Known subclasses: elisa.plugins.pigment.widgets.box.HBox, elisa.plugins.pigment.widgets.box.VBox

Box is an abstract widget that defines a specific kind of container that layouts a variable number of widgets into a rectangular area. The former is organized into either a single row or a single column of child widgets depending upon whether the box is of type HBox or VBox, respectively.

Use repeated calls to gtk_box_pack_start to pack widgets from start to end. Use gtk_box_pack_end to add widgets from end to start.
Instance Variablesspacingamount of space between children (type: int )
alignmentdefines where the children are positioned in the rectangular area of the box (type: ALIGNMENT )
Line # Kind Name Docs
77 Method __init__ Set the default styles for the widget. Subclasses should override and
136 Method clean Undocumented
147 Method pack_start Add widget to the box packed after any other widget packed using
164 Method pack_end Add widget to the box packed after any other widget packed using
181 Method remove Undocumented
198 Method pop Undocumented
221 Method __len__ Undocumented
241 Method spacing__get Undocumented
244 Method spacing__set Undocumented
250 Method alignment__get Undocumented
253 Method alignment__set Undocumented

Inherited from Widget:

Line # Kind Name Docs
92 Method _init_styles Undocumented
132 Method state__get The present state of the widget
136 Method state__set Set the state of the widget and emit the "state-changed" signal if
153 Method do_state_changed Default 'state-changed' handler
160 Method style__get The present style
164 Method style__set Set the present style, after binding it to the widget and subscribing
180 Method _style_property_changed Undocumented
184 Method do_style_set Default 'style-set' signal handler
206 Method get_parent Get the parent, if exists.
214 Method get_children Get the list of direct children.
222 Method get_root Get the root of the widget's tree hierarchy
233 Method get_descendants Get the list of nodes in the subtree
247 Method focus__get Whether the widget has focus
251 Method focus__set Set or unset the focus on the widget and emit the 'focus' signal.
279 Method focus_child__get Get the child with focus
287 Method do_key_press_event Default 'key-press-event' signal handler.
299 Method _do_real_key_press_event Undocumented
303 Class Method _demo_create_viewport Undocumented
310 Class Method _on_demo_delete Undocumented
329 Class Method _set_demo_widget_defaults Undocumented
350 Class Method demo Create a demo widget, put it on a canvas and show it in a viewport.

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
150 Method _proxy_child_signal_scrolled Undocumented
154 Method _proxy_child_signal Undocumented
158 Method _proxy_child_signal_with_pressure Undocumented
176 Method empty 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

Inherited from Node (via Widget, Group):

Line # Kind Name Docs
36 Method parent__set Undocumented
55 Method parent__get Undocumented
60 Method x__get Undocumented
66 Method x__set Undocumented
82 Method y__get Undocumented
88 Method y__set Undocumented
105 Method z__get Undocumented
111 Method z__set Undocumented
128 Method position__get Undocumented
134 Method position__set Undocumented
158 Method width__get Undocumented
164 Method width__set Undocumented
182 Method height__get Undocumented
188 Method height__set Undocumented
208 Method size__get Undocumented
214 Method size__set Undocumented
234 Method visible__get Undocumented
240 Method visible__set Undocumented
258 Method opacity__get Undocumented
264 Method opacity__set Undocumented
def __init__(self):
Set the default styles for the widget. Subclasses should override and call "self._update_style_properties()" after calling this base class constructor.
def clean(self):
Undocumented
def pack_start(self, widget, expand=False):
Add widget to the box packed after any other widget packed using pack_start. Visually widget will be positioned after any other widget packed that way.
Parameterswidgetwidget to pack in the box (type: elisa.plugins.pigment.widgets.widget.Widget )
expandTrue if widget is to be given extra space allocated to box. The extra space will be divided evenly between all widgets of box that use this option. (type: bool )
def pack_end(self, widget, expand=False):
Add widget to the box packed after any other widget packed using pack_end. Visually widget will be positioned before any other widget packed that way.
Parameterswidgetwidget to pack in the box (type: elisa.plugins.pigment.widgets.widget.Widget )
expandTrue if widget is to be given extra space allocated to box. The extra space will be divided evenly between all widgets of box that use this option. (type: bool )
def remove(self, widget):
Undocumented
def pop(self):
Undocumented
def __len__(self):
Undocumented
def spacing__get(self):
Undocumented
def spacing__set(self, spacing):
Undocumented
def alignment__get(self):
Undocumented
def alignment__set(self, alignment):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2008-09-29 19:14:29.