Home | Trees | Index | Help |
|
---|
Package wx :: Class CollapsiblePane |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Control
--+ | CollapsiblePane
A collapsable pane is a container with an embedded button-like control which can be used by the user to collapse or expand the pane's contents.
Once constructed you should use the GetPane
function to access the
pane and add your controls inside it (i.e. use the window returned
from GetPane
as the parent for the controls which must go in the
pane, NOT the wx.CollapsiblePane itself!).
Note that because of its nature of control which can dynamically (and
drastically) change its size at run-time under user-input, when
putting a wx.CollapsiblePane inside a wx.Sizer
you should be careful
to add it with a proportion value of zero; this is because otherwise
all other windows with non-zero proportion values would automatically
get resized each time the user expands or collapses the pane window,
usually resulting a weird, flickering effect.
Method Summary | |
---|---|
CollapsiblePane |
Create and show a wx.CollapsiblePane |
Collapses or expands the pane window. | |
bool |
Do the 2nd phase and create the GUI control. |
Same as Collapse(False). | |
Window |
Returns a reference to the pane window. |
bool |
Returns True if the pane window is currently hidden. |
bool |
Returns True if the pane window is currently shown. |
Property Summary | |
---|---|
Collapsed : IsCollapsed(self) -> bool | |
Expanded : IsExpanded(self) -> bool | |
thisown : The membership flag |
Instance Method Details |
---|
__init__(self,
parent,
winid=-1,
label=EmptyString,
pos=DefaultPosition,
size=DefaultSize,
style=CP_DEFAULT_STYLE,
val=DefaultValidator,
name=CollapsiblePaneNameStr)
|
Collapse(self, collapse=True)Collapses or expands the pane window.
|
Create(self, parent, winid=-1, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=CP_DEFAULT_STYLE, val=DefaultValidator, name=CollapsiblePaneNameStr)Do the 2nd phase and create the GUI control.
|
Expand(self)Same as Collapse(False). |
GetPane(self)Returns a reference to the pane window. Use the returned
|
IsCollapsed(self)Returns True if the pane window is currently hidden.
|
IsExpanded(self)Returns True if the pane window is currently shown.
|
Property Details |
---|
CollapsedIsCollapsed(self) -> bool Returns True if the pane window is currently hidden.
|
ExpandedIsExpanded(self) -> bool Returns True if the pane window is currently shown.
|
thisownThe membership flag |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:55:02 2009 | http://epydoc.sf.net |