wx.lib.agw.aui.framemanager.AuiPaneInfo¶
AuiPaneInfo specifies all the parameters for a pane. These parameters specify where the pane is on the screen, whether it is docked or floating, or hidden. In addition, these parameters specify the pane’s docked position, floating position, preferred size, minimum size, caption text among many other parameters.
Class Hierarchy¶
Methods Summary¶
Default class constructor. |
|
Sets the ideal size for the pane. The docking manager will attempt to use |
|
Sets the best size of the pane. |
|
Sets the best size of the pane. |
|
Sets the pane dock position to the bottom of the frame. |
|
Indicates whether a pane can be docked at the bottom of the frame. |
|
Indicates whether a pane can be snapped at the bottom of the main frame. |
|
Sets the caption of the pane. |
|
Indicates that a pane caption should be visible. If visible is |
|
Sets the pane to the center position of the frame. |
|
Specifies that the pane should adopt the default center pane settings. |
|
Sets the pane to the center position of the frame. |
|
Specifies that the pane should adopt the default center pane settings. |
|
Indicates that a close button should be drawn for the pane. |
|
Returns the number of visible buttons in the docked pane. |
|
Specifies that the pane should adopt the default pane settings. |
|
Indicates whether a pane should be destroyed when it is closed. |
|
Determines the direction of the docked pane. It is functionally the |
|
Indicates that a pane should be docked. It is the opposite of |
|
Getter for the dock_direction. |
|
Setter for the dock_direction. |
|
Specifies whether a frame can be docked or not. It is the same as specifying |
|
Causes the containing dock to have no resize sash. This is useful |
|
Forces a pane to be fixed size so that it cannot be resized. |
|
Indicates that a pane should be floated. It is the opposite of |
|
Sets whether the user will be able to undock a pane and turn it |
|
Sets the position of the floating pane. |
|
Sets the size of the floating pane. |
|
Indicates whether a pane, when floating, has a “fly-out” effect |
|
Returns the minimization style for this pane. |
|
Indicates that a gripper should be drawn for the pane. |
|
Indicates that a gripper should be drawn at the top of the pane. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns whether a pane has a |
|
Returns |
|
Indicates that a pane should be hidden. |
|
Specifies whether an icon is drawn on the left of the caption text when |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns whether the pane is a notebook control ( |
|
Returns |
|
Returns whether the pane is a notebook page in a |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Determines the layer of the docked pane. |
|
Sets the pane dock position to the left side of the frame. |
|
Indicates whether a pane can be docked on the left of the frame. |
|
Indicates whether a pane can be snapped on the left of the main frame. |
|
Makes the pane take up the full area. |
|
Indicates that a maximize button should be drawn for the pane. |
|
Sets the maximum size of the pane. |
|
Sets the maximum size of the pane. |
|
Sets the maximum size of the pane. |
|
Makes the pane minimized in a |
|
Indicates that a minimize button should be drawn for the pane. |
|
Sets the expected minimized mode if the minimize button is visible. |
|
Minimizes the panes using a |
|
Sets the minimum size of the pane. |
|
Sets the minimum size of the pane. |
|
Sets the minimum size of the pane. |
|
Indicates whether a pane can be moved. |
|
Sets the name of the pane so it can be referenced in lookup functions. |
|
Forces a pane to be a notebook control ( |
|
Indicates whether a pane can be docked in an automatic |
|
Forces a pane to be a notebook page, so that the pane can be |
|
Indicates that a border should be drawn for the pane. |
|
Indicates that a pin button should be drawn for the pane. |
|
Determines the position of the docked pane. |
|
Resets all the buttons and recreates them from scratch depending on the |
|
Allows a pane to be resizable if resizable is |
|
Is the reverse of |
|
Sets the pane dock position to the right side of the frame. |
|
Indicates whether a pane can be docked on the right of the frame. |
|
Indicates whether a pane can be snapped on the right of the main frame. |
|
Determines the row of the docked pane. |
|
Copies the source pane members that pertain to docking position to self. |
|
Turns the property given by flag on or off with the option_state |
|
Sets the pane name once docked in a |
|
Indicates that a pane should be shown. |
|
Indicates whether a pane can be snapped on the main frame. This is |
|
Specifies that the pane should adopt the default toolbar pane settings. |
|
Sets the pane dock position to the top of the frame. |
|
Indicates whether a pane can be docked at the top of the frame. |
|
Indicates whether a pane can be snapped at the top of the main frame. |
|
Makes the pane transparent when floating. |
|
Associate a |
Properties Summary¶
Getter for the dock_direction. |
Class API¶
- class AuiPaneInfo(object)¶
AuiPaneInfo specifies all the parameters for a pane. These parameters specify where the pane is on the screen, whether it is docked or floating, or hidden. In addition, these parameters specify the pane’s docked position, floating position, preferred size, minimum size, caption text among many other parameters.
Methods¶
- __init__(self)¶
Default class constructor.
- BestSize(self, arg1=None, arg2=None) Self ¶
Sets the ideal size for the pane. The docking manager will attempt to use this size as much as possible when docking or floating the pane.
This method is split in 2 versions depending on the input type. If arg1 is a
wx.Size
object, thenBestSize1
is called. Otherwise,BestSize2
is called.- Parameters:
arg1 – a
wx.Size
object, a (x, y) tuple or a x coordinate.arg2 – a y coordinate (only if arg1 is a x coordinate, otherwise unused).
- BestSize1(self, size) Self ¶
Sets the best size of the pane.
See also
BestSize
for an explanation of input parameters.
- BestSize2(self, x, y) Self ¶
Sets the best size of the pane.
See also
BestSize
for an explanation of input parameters.
- Bottom(self) Self ¶
Sets the pane dock position to the bottom of the frame.
Note
This is the same thing as calling
Direction
withAUI_DOCK_BOTTOM
as parameter.
- BottomDockable(self, b=True) Self ¶
Indicates whether a pane can be docked at the bottom of the frame.
- Parameters:
b (bool) – whether the pane can be docked at the bottom or not.
- BottomSnappable(self, b=True) Self ¶
Indicates whether a pane can be snapped at the bottom of the main frame.
- Parameters:
b (bool) – whether the pane can be snapped at the bottom of the main frame or not.
- Caption(self, caption) Self ¶
Sets the caption of the pane.
- Parameters:
caption (string) – a string specifying the pane caption.
- CaptionVisible(self, visible=True, left=False) Self ¶
Indicates that a pane caption should be visible. If visible is
False
, no pane caption is drawn.- Parameters:
visible (bool) – whether the caption should be visible or not;
left (bool) – whether the caption should be drawn on the left (rotated by 90 degrees) or not.
- Center(self) Self ¶
Sets the pane to the center position of the frame.
The centre pane is the space in the middle after all border panes (left, top, right, bottom) are subtracted from the layout.
Note
This is the same thing as calling
Direction
withAUI_DOCK_CENTER
as parameter.
- CenterPane(self) Self ¶
Specifies that the pane should adopt the default center pane settings.
Centre panes usually do not have caption bars. This function provides an easy way of preparing a pane to be displayed in the center dock position.
- Centre(self) Self ¶
Sets the pane to the center position of the frame.
The centre pane is the space in the middle after all border panes (left, top, right, bottom) are subtracted from the layout.
Note
This is the same thing as calling
Direction
withAUI_DOCK_CENTRE
as parameter.
- CentrePane(self) Self ¶
Specifies that the pane should adopt the default center pane settings.
Centre panes usually do not have caption bars. This function provides an easy way of preparing a pane to be displayed in the center dock position.
- CloseButton(self, visible=True) Self ¶
Indicates that a close button should be drawn for the pane.
- Parameters:
visible (bool) – whether the close button should be visible or not.
- CountButtons(self)¶
Returns the number of visible buttons in the docked pane.
- DefaultPane(self) Self ¶
Specifies that the pane should adopt the default pane settings.
- DestroyOnClose(self, b=True) Self ¶
Indicates whether a pane should be destroyed when it is closed.
Normally a pane is simply hidden when the close button is clicked. Setting b to
True
will cause the window to be destroyed when the user clicks the pane’s close button.- Parameters:
b (bool) – whether the pane should be destroyed when it is closed or not.
- Direction(self, direction) Self ¶
Determines the direction of the docked pane. It is functionally the same as calling
Left
,Right
,Top
orBottom
, except that docking direction may be specified programmatically via the parameter direction.- Parameters:
direction (integer) – the direction of the docked pane.
See also
dock_direction_set
for a list of valid docking directions.
- dock_direction_get(self)¶
Getter for the
dock_direction
.See also
dock_direction_set
for a set of valid docking directions.
- dock_direction_set(self, value)¶
Setter for the
dock_direction
.- Parameters:
value (integer) – the docking direction. This can be one of the following bits:
Dock Flag
Value
Description
AUI_DOCK_NONE
0
No docking direction.
AUI_DOCK_TOP
1
Top docking direction.
AUI_DOCK_RIGHT
2
Right docking direction.
AUI_DOCK_BOTTOM
3
Bottom docking direction.
AUI_DOCK_LEFT
4
Left docking direction.
AUI_DOCK_CENTER
5
Center docking direction.
AUI_DOCK_CENTRE
5
Centre docking direction.
AUI_DOCK_NOTEBOOK_PAGE
6
Automatic AuiNotebooks docking style.
- Dockable(self, b=True)¶
Specifies whether a frame can be docked or not. It is the same as specifying
TopDockable
.BottomDockable
.LeftDockable
.RightDockable
.- Parameters:
b (bool) – whether the frame can be docked or not.
- DockFixed(self, b=True) Self ¶
Causes the containing dock to have no resize sash. This is useful for creating panes that span the entire width or height of a dock, but should not be resizable in the other direction.
- Parameters:
b (bool) – whether the pane will have a resize sash or not.
- Fixed(self) Self ¶
Forces a pane to be fixed size so that it cannot be resized. After calling
Fixed
,IsFixed
will returnTrue
.
- Floatable(self, b=True) Self ¶
Sets whether the user will be able to undock a pane and turn it into a floating window.
- Parameters:
b (bool) – whether the pane can be floated or not.
- FloatingPosition(self, pos) Self ¶
Sets the position of the floating pane.
- Parameters:
pos – a
wx.Point
or a tuple indicating the pane floating position.
- FloatingSize(self, size) Self ¶
Sets the size of the floating pane.
- Parameters:
size – a
wx.Size
or a tuple indicating the pane floating size.
- FlyOut(self, b=True) Self ¶
Indicates whether a pane, when floating, has a “fly-out” effect (i.e., floating panes which only show themselves when moused over).
- Parameters:
b (bool) – whether the pane can be snapped on the main frame or not.
- GetMinimizeMode(self)¶
Returns the minimization style for this pane.
Possible return values are:
Minimize Mode Flag
Hex Value
Description
AUI_MINIMIZE_POS_SMART
0x01
Minimizes the pane on the closest tool bar
AUI_MINIMIZE_POS_TOP
0x02
Minimizes the pane on the top tool bar
AUI_MINIMIZE_POS_LEFT
0x03
Minimizes the pane on its left tool bar
AUI_MINIMIZE_POS_RIGHT
0x04
Minimizes the pane on its right tool bar
AUI_MINIMIZE_POS_BOTTOM
0x05
Minimizes the pane on its bottom tool bar
AUI_MINIMIZE_POS_TOOLBAR
0x06
Minimizes the pane on a target
AuiToolBar
AUI_MINIMIZE_POS_MASK
0x17
Mask to filter the position flags
AUI_MINIMIZE_CAPT_HIDE
0x0
Hides the caption of the minimized pane
AUI_MINIMIZE_CAPT_SMART
0x08
Displays the caption in the best rotation (horizontal or clockwise)
AUI_MINIMIZE_CAPT_HORZ
0x10
Displays the caption horizontally
AUI_MINIMIZE_CAPT_MASK
0x18
Mask to filter the caption flags
The flags can be filtered with the following masks:
Minimize Mask Flag
Hex Value
Description
AUI_MINIMIZE_POS_MASK
0x17
Filters the position flags
AUI_MINIMIZE_CAPT_MASK
0x18
Filters the caption flags
- Gripper(self, visible=True) Self ¶
Indicates that a gripper should be drawn for the pane.
- Parameters:
visible (bool) – whether the gripper should be visible or not.
- GripperTop(self, attop=True) Self ¶
Indicates that a gripper should be drawn at the top of the pane.
- Parameters:
attop (bool) – whether the gripper should be drawn at the top or not.
- HasBorder(self)¶
Returns
True
if the pane displays a border.
- HasCaption(self)¶
Returns
True
if the pane displays a caption.
- HasCaptionLeft(self)¶
Returns
True
if the pane displays a caption on the left (rotated by 90 degrees).
- HasCloseButton(self)¶
Returns
True
if the pane displays a button to close the pane.
- HasFlag(self, flag)¶
Returns
True
if the the property specified by flag is active for the pane.- Parameters:
flag (integer) – the property to check for activity.
- HasGripper(self)¶
Returns
True
if the pane displays a gripper.
- HasGripperTop(self)¶
Returns
True
if the pane displays a gripper at the top.
- HasMaximizeButton(self)¶
Returns
True
if the pane displays a button to maximize the pane.
- HasMinimizeButton(self)¶
Returns
True
if the pane displays a button to minimize the pane.
- HasNotebook(self)¶
Returns whether a pane has a
AuiNotebook
or not.
- HasPinButton(self)¶
Returns
True
if the pane displays a button to float the pane.
- Hide(self) Self ¶
Indicates that a pane should be hidden.
Calling
Show(False)
achieve the same effect.
- Icon(self, icon) Self ¶
Specifies whether an icon is drawn on the left of the caption text when the pane is docked. If icon is
None
orNullIcon
, no icon is drawn on the caption space.- Parameters:
icon (
Icon
orNone
) – an icon to draw on the caption space, orNone
.
- IsBottomDockable(self)¶
Returns
True
if the pane can be docked at the bottom of the managed frame.
- IsBottomSnappable(self)¶
Returns
True
if the pane can be snapped at the bottom of the managed frame.
- IsDestroyOnClose(self)¶
Returns
True
if the pane should be destroyed when it is closed.Normally a pane is simply hidden when the close button is clicked. Calling
DestroyOnClose
with aTrue
input parameter will cause the window to be destroyed when the user clicks the pane’s close button.
- IsDockable(self)¶
Returns
True
if the pane can be docked.
- IsDocked(self)¶
Returns
True
if the pane is docked.
- IsFixed(self)¶
Returns
True
if the pane cannot be resized.
- IsFloatable(self)¶
Returns
True
if the pane can be undocked and displayed as a floating window.
- IsFloating(self)¶
Returns
True
if the pane is floating.
- IsFlyOut(self)¶
Returns
True
if the floating pane has a “fly-out” effect.
- IsHorizontal(self)¶
Returns
True
if the panedock_direction
is horizontal.
- IsLeftDockable(self)¶
Returns
True
if the pane can be docked at the left of the managed frame.
- IsLeftSnappable(self)¶
Returns
True
if the pane can be snapped on the left of the managed frame.
- IsMaximized(self)¶
Returns
True
if the pane is maximized.
- IsMinimized(self)¶
Returns
True
if the pane is minimized.
- IsMovable(self)¶
Returns
True
if the docked frame can be undocked or moved to another dock position.
- IsNotebookControl(self)¶
Returns whether the pane is a notebook control (
AuiNotebook
).
- IsNotebookDockable(self)¶
Returns
True
if a pane can be docked on top to another to create aAuiNotebook
.
- IsNotebookPage(self)¶
Returns whether the pane is a notebook page in a
AuiNotebook
.
- IsOk(self)¶
Returns
True
if theAuiPaneInfo
structure is valid.Note
A pane structure is valid if it has an associated window.
- IsResizeable(self)¶
Returns
True
if the pane can be resized.
- IsRightDockable(self)¶
Returns
True
if the pane can be docked at the right of the managed frame.
- IsRightSnappable(self)¶
Returns
True
if the pane can be snapped on the right of the managed frame.
- IsShown(self)¶
Returns
True
if the pane is currently shown.
- IsSnappable(self)¶
Returns
True
if the pane can be snapped.
- IsToolbar(self)¶
Returns
True
if the pane contains a toolbar.
- IsTopDockable(self)¶
Returns
True
if the pane can be docked at the top of the managed frame.
- IsTopSnappable(self)¶
Returns
True
if the pane can be snapped at the top of the managed frame.
- IsVertical(self)¶
Returns
True
if the panedock_direction
is vertical.
- Layer(self, layer) Self ¶
Determines the layer of the docked pane.
The dock layer is similar to an onion, the inner-most layer being layer 0. Each shell moving in the outward direction has a higher layer number. This allows for more complex docking layout formation.
- Parameters:
layer (integer) – the layer of the docked pane.
- Left(self) Self ¶
Sets the pane dock position to the left side of the frame.
Note
This is the same thing as calling
Direction
withAUI_DOCK_LEFT
as parameter.
- LeftDockable(self, b=True)¶
Indicates whether a pane can be docked on the left of the frame.
- Parameters:
b (bool) – whether the pane can be docked at the left or not.
- LeftSnappable(self, b=True) Self ¶
Indicates whether a pane can be snapped on the left of the main frame.
- Parameters:
b (bool) – whether the pane can be snapped at the left of the main frame or not.
- Maximize(self) Self ¶
Makes the pane take up the full area.
- MaximizeButton(self, visible=True) Self ¶
Indicates that a maximize button should be drawn for the pane.
- Parameters:
visible (bool) – whether the maximize button should be visible or not.
- MaxSize(self, arg1=None, arg2=None) Self ¶
Sets the maximum size of the pane.
This method is split in 2 versions depending on the input type. If arg1 is a
wx.Size
object, thenMaxSize1
is called. Otherwise,MaxSize2
is called.- Parameters:
arg1 – a
wx.Size
object, a (x, y) tuple or a x coordinate.arg2 – a y coordinate (only if arg1 is a x coordinate, otherwise unused).
- MaxSize1(self, size) Self ¶
Sets the maximum size of the pane.
See also
MaxSize
for an explanation of input parameters.
- MaxSize2(self, x, y) Self ¶
Sets the maximum size of the pane.
See also
MaxSize
for an explanation of input parameters.
- Minimize(self) Self ¶
Makes the pane minimized in a
AuiToolBar
.Clicking on the minimize button causes a new
AuiToolBar
to be created and added to the frame manager, (currently the implementation is such that panes at West will have a toolbar at the right, panes at South will have toolbars at the bottom etc…) and the pane is hidden in the manager.Clicking on the restore button on the newly created toolbar will result in the toolbar being removed and the original pane being restored.
- MinimizeButton(self, visible=True) Self ¶
Indicates that a minimize button should be drawn for the pane.
- Parameters:
visible (bool) – whether the minimize button should be visible or not.
- MinimizeMode(self, mode) Self ¶
Sets the expected minimized mode if the minimize button is visible.
- Parameters:
mode (integer) – the minimized pane can have a specific position in the work space:
Minimize Mode Flag
Hex Value
Description
AUI_MINIMIZE_POS_SMART
0x01
Minimizes the pane on the closest tool bar
AUI_MINIMIZE_POS_TOP
0x02
Minimizes the pane on the top tool bar
AUI_MINIMIZE_POS_LEFT
0x03
Minimizes the pane on its left tool bar
AUI_MINIMIZE_POS_RIGHT
0x04
Minimizes the pane on its right tool bar
AUI_MINIMIZE_POS_BOTTOM
0x05
Minimizes the pane on its bottom tool bar
AUI_MINIMIZE_POS_TOOLBAR
0x06
Minimizes the pane on a target
AuiToolBar
The caption of the minimized pane can be displayed in different modes:
Caption Mode Flag
Hex Value
Description
AUI_MINIMIZE_CAPT_HIDE
0x0
Hides the caption of the minimized pane
AUI_MINIMIZE_CAPT_SMART
0x08
Displays the caption in the best rotation (horizontal in the top and in the bottom tool bar or clockwise in the right and in the left tool bar)
AUI_MINIMIZE_CAPT_HORZ
0x10
Displays the caption horizontally
Note
In order to use the
AUI_MINIMIZE_POS_TOOLBAR
flag, the instance ofAuiManager
you pass as an input forMinimizeTarget
must have a real name and not the randomly generated one. Remember to set theName
property of the toolbar pane before calling this method.
- MinimizeTarget(self, toolbarPane) Self ¶
Minimizes the panes using a
AuiPaneInfo
as a target. AsAuiPaneInfo
properties need to be copied back and forth every time the perspective has changed, we only store the toobar name.- Parameters:
toolbarPane – an instance of
AuiPaneInfo
, containing aAuiToolBar
.
Note
In order to use this functionality (and with the
AUI_MINIMIZE_POS_TOOLBAR
flag set), the instance ofAuiPaneInfo
you pass as an input must have a real name and not the randomly generated one. Remember to set theName
property of the toolbar pane before calling this method.
- MinSize(self, arg1=None, arg2=None) Self ¶
Sets the minimum size of the pane.
This method is split in 2 versions depending on the input type. If arg1 is a
wx.Size
object, thenMinSize1
is called. Otherwise,MinSize2
is called.- Parameters:
arg1 – a
wx.Size
object, a (x, y) tuple or or a x coordinate.arg2 – a y coordinate (only if arg1 is a x coordinate, otherwise unused).
- MinSize1(self, size) Self ¶
Sets the minimum size of the pane.
See also
MinSize
for an explanation of input parameters.
- MinSize2(self, x, y) Self ¶
Sets the minimum size of the pane.
See also
MinSize
for an explanation of input parameters.
- Movable(self, b=True) Self ¶
Indicates whether a pane can be moved.
- Parameters:
b (bool) – whether the pane can be moved or not.
- Name(self, name) Self ¶
Sets the name of the pane so it can be referenced in lookup functions.
If a name is not specified by the user, a random name is assigned to the pane when it is added to the manager.
- Parameters:
name – a string specifying the pane name.
Warning
If you are using
AuiManager.SavePerspective
andAuiManager.LoadPerspective
, you will have to specify a name for your pane usingName
, as perspectives containing randomly generated names can not be properly restored.
- NotebookControl(self, id) Self ¶
Forces a pane to be a notebook control (
AuiNotebook
).- Parameters:
id (integer) – the notebook id.
- NotebookDockable(self, b=True) Self ¶
Indicates whether a pane can be docked in an automatic
AuiNotebook
.- Parameters:
b (bool) – whether the pane can be docked in a notebook or not.
- NotebookPage(self, id, tab_position=1000) Self ¶
Forces a pane to be a notebook page, so that the pane can be docked on top to another to create a
AuiNotebook
.- Parameters:
id (integer) – the notebook id;
tab_position (integer) – the tab number of the pane once docked in a notebook.
- PaneBorder(self, visible=True) Self ¶
Indicates that a border should be drawn for the pane.
- Parameters:
visible (bool) – whether the pane border should be visible or not.
- PinButton(self, visible=True) Self ¶
Indicates that a pin button should be drawn for the pane.
- Parameters:
visible (bool) – whether the pin button should be visible or not.
- Position(self, pos) Self ¶
Determines the position of the docked pane.
- Parameters:
pos (integer) – the position of the docked pane.
- ResetButtons(self)¶
Resets all the buttons and recreates them from scratch depending on the
AuiManager
flags.
- Resizable(self, resizable=True) Self ¶
Allows a pane to be resizable if resizable is
True
, and forces it to be a fixed size if resizeable isFalse
.If resizable is
False
, this is simply an antonym forFixed
.- Parameters:
resizable (bool) – whether the pane will be resizeable or not.
- Right(self) Self ¶
Sets the pane dock position to the right side of the frame.
Note
This is the same thing as calling
Direction
withAUI_DOCK_RIGHT
as parameter.
- RightDockable(self, b=True) Self ¶
Indicates whether a pane can be docked on the right of the frame.
- Parameters:
b (bool) – whether the pane can be docked at the right or not.
- RightSnappable(self, b=True)¶
Indicates whether a pane can be snapped on the right of the main frame.
- Parameters:
b (bool) – whether the pane can be snapped at the right of the main frame or not.
- Row(self, row) Self ¶
Determines the row of the docked pane.
- Parameters:
row (integer) – the row of the docked pane.
- SetDockPos(self, source) Self ¶
Copies the source pane members that pertain to docking position to self.
- Parameters:
source – the source pane from where to copy the attributes, an instance of
AuiPaneInfo
.
- SetFlag(self, flag, option_state) Self ¶
Turns the property given by flag on or off with the option_state parameter.
- Parameters:
flag (integer) – the property to set;
option_state (bool) – either
True
orFalse
.
- SetNameFromNotebookId(self) Self ¶
Sets the pane name once docked in a
AuiNotebook
using the notebook id.
- Show(self, show=True) Self ¶
Indicates that a pane should be shown.
- Parameters:
show (bool) – whether the pane should be shown or not.
- Snappable(self, b=True) Self ¶
Indicates whether a pane can be snapped on the main frame. This is equivalent as calling
TopSnappable
.BottomSnappable
.LeftSnappable
.RightSnappable
.- Parameters:
b (bool) – whether the pane can be snapped on the main frame or not.
- ToolbarPane(self) Self ¶
Specifies that the pane should adopt the default toolbar pane settings.
- Top(self) Self ¶
Sets the pane dock position to the top of the frame.
Note
This is the same thing as calling
Direction
withAUI_DOCK_TOP
as parameter.
- TopDockable(self, b=True) Self ¶
Indicates whether a pane can be docked at the top of the frame.
- Parameters:
b (bool) – whether the pane can be docked at the top or not.
- TopSnappable(self, b=True)¶
Indicates whether a pane can be snapped at the top of the main frame.
- Parameters:
b (bool) – whether the pane can be snapped at the top of the main frame or not.
- Transparent(self, alpha)¶
Makes the pane transparent when floating.
- Parameters:
alpha (integer) – a value between 0 and 255 for pane transparency.
- Window(self, w) Self ¶
Associate a
wx.Window
derived window to this pane.This normally does not need to be specified, as the window pointer is automatically assigned to the
AuiPaneInfo
structure as soon as it is added to the manager.- Parameters:
w – a
wx.Window
derived window.
Properties¶
- dock_direction¶
Getter for the
dock_direction
.See also
dock_direction_set
for a set of valid docking directions.