vi.pane

Module Contents

Classes

Pane

Base class for Panes.

GroupPane

This pane groups subpanes; it cannot have direct childrens

class vi.pane.Pane(descr=None, iconURL=None, iconClasses=None, closeable=False, collapseable=True, focusable=True, path=None)

Bases: flare.html5.Div

Base class for Panes.

A pane represents a entry in the module list as well as a list of widgets associated with this pane.

It is possible to stack panes on-top of each other. If a pane is active, _all_ its child widgets are visible (through they might overlap).

__setattr__(self, key, value)
setImage(self, loading=False)
lock(self)
unlock(self)
setText(self, descr=None, iconURL=None, loading=False)
onBtnCloseReleased(self, *args, **kwargs)
addChildPane(self, pane)

Stack a pane under this one. It gets displayed as a subpane. :param pane: Another pane :type pane: pane

removeChildPane(self, pane)

Removes a subpane. :param pane: The pane to remove. Must be a direct child of this pane :type pane: Pane

onDetach(self)
addWidget(self, widget, disableOtherWidgets=True)

Adds a widget to this pane. Note: all widgets of a pane are visible at the same time! :param widget: The widget to add :type widget: Widget

rebuildChildrenClassInfo(self)
removeWidget(self, widget)

Removes a widget. :param widget: The widget to remove. Must be a direct child of this pane. :type widget: Widget

containsWidget(self, widget)

Tests wherever widget is a direct child of this pane. :returns: bool

onClick(self, event=None, *args, **kwargs)
expand(self)
collapse(self)
focus(self)
class vi.pane.GroupPane(*args, **kwargs)

Bases: Pane

This pane groups subpanes; it cannot have direct childrens

loadChildren(self)
DeferredLoadChildren(self, delay=1000)
onClick(self, event=None, *args, **kwargs)
expand(self)
collapse(self)
onFocus(self, event)