Package Gnumed :: Package wxpython :: Module gmMultiSash :: Class cMultiSash
[frames] | no frames]

Class cMultiSash

source code

wx.Window --+
            |
           cMultiSash

Main multisash widget. Dynamically displays a stack of child widgets.

Instance Methods
 
__init__(self, *_args, **_kwargs) source code
 
get_focussed_leaf(self)
Retrieves the currently focused leaf.
source code
 
get_displayed_leafs(self)
Retrieves the currently displayed leafs.
source code
 
add_content(self, content)
Adds he supplied content widget to the multisash, setting it as child of the bottom leaf.
source code
 
Clear(self)
Clear all mulsisash leafs and restores initial values
source code
 
refresh_bottom_leaf(self, bottom_leaf=None)
Updates the field that keeps track of the bottom leaf.
source code
 
refresh_displayed_leafs(self, splitter)
Recursively find all displayed leafs.
source code
Method Details

get_focussed_leaf(self)

source code 

Retrieves the currently focused leaf. Typically, used to process some action over the focused widget.

add_content(self, content)

source code 

Adds he supplied content widget to the multisash, setting it as child of the bottom leaf.

@param content The new content widget to add. @type content Any wx.Window derived object.

refresh_bottom_leaf(self, bottom_leaf=None)

source code 

Updates the field that keeps track of the bottom leaf. It is required to ensure new leafs are created under the bottom one. If the bottom leaf is supplied as parameter, it is set. Typically, after a new leaf has been added/created. If the bottom leaf ins not supplied ad parameter, it will be dinamically obtained. Typically, after leaf destruction.

@param bottom_leaf The leaf to be set as bottom one @type bottom_leaf wx.MultiViewLeaf

refresh_displayed_leafs(self, splitter)

source code 

Recursively find all displayed leafs. @param splitter The multisash splitter to traverse its leafs for. @type splitter cMultiSashSplitter