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.
__init__ | Default class constructor. |
BestSize | Sets the ideal size for the pane. |
BestSize1 | Sets the best size of the pane. |
BestSize2 | Sets the best size of the pane. |
Bottom | Sets the pane dock position to the bottom of the frame. |
BottomDockable | Indicates whether a pane can be docked at the bottom of the frame. |
BottomSnappable | Indicates whether a pane can be snapped at the bottom of the main frame. |
Caption | Sets the caption of the pane. |
CaptionVisible | Indicates that a pane caption should be visible. |
Center | Sets the pane to the center position of the frame. |
CenterPane | Specifies that the pane should adopt the default center pane settings. |
Centre | Sets the pane to the center position of the frame. |
CentrePane | Specifies that the pane should adopt the default center pane settings. |
CloseButton | Indicates that a close button should be drawn for the pane. |
CountButtons | Returns the number of visible buttons in the docked pane. |
DefaultPane | Specifies that the pane should adopt the default pane settings. |
DestroyOnClose | Indicates whether a pane should be destroyed when it is closed. |
Direction | Determines the direction of the docked pane. |
Dock | Indicates that a pane should be docked. |
DockFixed | Causes the containing dock to have no resize sash. |
Dockable | Specifies whether a frame can be docked or not. |
Fixed | Forces a pane to be fixed size so that it cannot be resized. |
Float | Indicates that a pane should be floated. |
Floatable | Sets whether the user will be able to undock a pane and turn it into a floating window. |
FloatingPosition | Sets the position of the floating pane. |
FloatingSize | Sets the size of the floating pane. |
FlyOut | Indicates whether a pane, when floating, has a “fly-out” effect (i.e., floating panes which only show themselves when moused over). |
GetMinimizeMode | Returns the minimization style for this pane. |
Gripper | Indicates that a gripper should be drawn for the pane. |
GripperTop | Indicates that a gripper should be drawn at the top of the pane. |
HasBorder | Returns True if the pane displays a border. |
HasCaption | Returns True if the pane displays a caption. |
HasCaptionLeft | Returns True if the pane displays a caption on the left (rotated by 90 degrees). |
HasCloseButton | Returns True if the pane displays a button to close the pane. |
HasFlag | Returns True if the the property specified by flag is active for the pane. |
HasGripper | Returns True if the pane displays a gripper. |
HasGripperTop | Returns True if the pane displays a gripper at the top. |
HasMaximizeButton | Returns True if the pane displays a button to maximize the pane. |
HasMinimizeButton | Returns True if the pane displays a button to minimize the pane. |
HasNotebook | Returns whether a pane has a AuiNotebook or not. |
HasPinButton | Returns True if the pane displays a button to float the pane. |
Hide | Indicates that a pane should be hidden. |
Icon | Specifies whether an icon is drawn on the left of the caption text when the pane is docked. |
IsBottomDockable | Returns True if the pane can be docked at the bottom |
IsBottomSnappable | Returns True if the pane can be snapped at the bottom of the managed frame. |
IsDestroyOnClose | Returns True if the pane should be destroyed when it is closed. |
IsDockable | Returns True if the pane can be docked. |
IsDocked | Returns True if the pane is docked. |
IsFixed | Returns True if the pane cannot be resized. |
IsFloatable | Returns True if the pane can be undocked and displayed as a |
IsFloating | Returns True if the pane is floating. |
IsFlyOut | Returns True if the floating pane has a “fly-out” effect. |
IsHorizontal | Returns True if the pane dock_direction is horizontal. |
IsLeftDockable | Returns True if the pane can be docked at the left |
IsLeftSnappable | Returns True if the pane can be snapped on the left of the managed frame. |
IsMaximized | Returns True if the pane is maximized. |
IsMinimized | Returns True if the pane is minimized. |
IsMovable | Returns True if the docked frame can be undocked or moved to |
IsNotebookControl | Returns whether the pane is a notebook control (AuiNotebook). |
IsNotebookDockable | Returns True if a pane can be docked on top to another to create a |
IsNotebookPage | Returns whether the pane is a notebook page in a AuiNotebook. |
IsOk | Returns True if the AuiPaneInfo structure is valid. |
IsResizeable | Returns True if the pane can be resized. |
IsRightDockable | Returns True if the pane can be docked at the right |
IsRightSnappable | Returns True if the pane can be snapped on the right of the managed frame. |
IsShown | Returns True if the pane is currently shown. |
IsSnappable | Returns True if the pane can be snapped. |
IsToolbar | Returns True if the pane contains a toolbar. |
IsTopDockable | Returns True if the pane can be docked at the top |
IsTopSnappable | Returns True if the pane can be snapped at the top of the managed frame. |
IsVertical | Returns True if the pane dock_direction is vertical. |
Layer | Determines the layer of the docked pane. |
Left | Sets the pane dock position to the left side of the frame. |
LeftDockable | Indicates whether a pane can be docked on the left of the frame. |
LeftSnappable | Indicates whether a pane can be snapped on the left of the main frame. |
MaxSize | Sets the maximum size of the pane. |
MaxSize1 | Sets the maximum size of the pane. |
MaxSize2 | Sets the maximum size of the pane. |
Maximize | Makes the pane take up the full area. |
MaximizeButton | Indicates that a maximize button should be drawn for the pane. |
MinSize | Sets the minimum size of the pane. |
MinSize1 | Sets the minimum size of the pane. |
MinSize2 | Sets the minimum size of the pane. |
Minimize | Makes the pane minimized in a AuiToolBar. |
MinimizeButton | Indicates that a minimize button should be drawn for the pane. |
MinimizeMode | Sets the expected minimized mode if the MinimizeButton() is visible. |
MinimizeTarget | Minimizes the panes using a AuiPaneInfo as a target. As AuiPaneInfo properties |
Movable | Indicates whether a pane can be moved. |
Name | Sets the name of the pane so it can be referenced in lookup functions. |
NotebookControl | Forces a pane to be a notebook control (AuiNotebook). |
NotebookDockable | Indicates whether a pane can be docked in an automatic AuiNotebook. |
NotebookPage | Forces a pane to be a notebook page, so that the pane can be |
PaneBorder | Indicates that a border should be drawn for the pane. |
PinButton | Indicates that a pin button should be drawn for the pane. |
Position | Determines the position of the docked pane. |
ResetButtons | Resets all the buttons and recreates them from scratch depending on the |
Resizable | Allows a pane to be resizable if resizable is True, and forces |
Restore | Is the reverse of Maximize and Minimize. |
Right | Sets the pane dock position to the right side of the frame. |
RightDockable | Indicates whether a pane can be docked on the right of the frame. |
RightSnappable | Indicates whether a pane can be snapped on the right of the main frame. |
Row | Determines the row of the docked pane. |
SetDockPos | Copies the source pane members that pertain to docking position to self. |
SetFlag | Turns the property given by flag on or off with the option_state parameter. |
SetNameFromNotebookId | Sets the pane name once docked in a AuiNotebook using the notebook id. |
Show | Indicates that a pane should be shown. |
Snappable | Indicates whether a pane can be snapped on the main frame. |
ToolbarPane | Specifies that the pane should adopt the default toolbar pane settings. |
Top | Sets the pane dock position to the top of the frame. |
TopDockable | Indicates whether a pane can be docked at the top of the frame. |
TopSnappable | Indicates whether a pane can be snapped at the top of the main frame. |
Transparent | Makes the pane transparent when floating. |
Window | Associate a wx.Window derived window to this pane. |
dock_direction_get | Getter for the dock_direction. |
dock_direction_set | Setter for the dock_direction. |
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.
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, then BestSize1 is called. Otherwise, BestSize2 is called.
Parameters: |
|
---|
Sets the best size of the pane.
See also
BestSize for an explanation of input parameters.
Sets the best size of the pane.
See also
BestSize for an explanation of input parameters.
Sets the pane dock position to the bottom of the frame.
Note
This is the same thing as calling Direction with AUI_DOCK_BOTTOM as parameter.
Indicates whether a pane can be docked at the bottom of the frame.
Parameters: | b – whether the pane can be docked at the bottom or not. |
---|
Indicates whether a pane can be snapped at the bottom of the main frame.
Parameters: | b – whether the pane can be snapped at the bottom of the main frame or not. |
---|
Sets the caption of the pane.
Parameters: | caption – a string specifying the pane caption. |
---|
Indicates that a pane caption should be visible. If visible is False, no pane caption is drawn.
Parameters: |
|
---|
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 with AUI_DOCK_CENTER as parameter.
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.
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 with AUI_DOCK_CENTRE as parameter.
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.
Indicates that a close button should be drawn for the pane.
Parameters: | visible – whether the close button should be visible or not. |
---|
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 – whether the pane should be destroyed when it is closed or not. |
---|
Determines the direction of the docked pane. It is functionally the same as calling Left, Right, Top or Bottom, except that docking direction may be specified programmatically via the parameter direction.
Parameters: | direction – the direction of the docked pane. |
---|
See also
dock_direction_set for a list of valid docking directions.
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 – whether the pane will have a resize sash or not. |
---|
Specifies whether a frame can be docked or not. It is the same as specifying TopDockable . BottomDockable . LeftDockable . RightDockable .
Parameters: | b – whether the frame can be docked or not. |
---|
Forces a pane to be fixed size so that it cannot be resized. After calling Fixed, IsFixed will return True.
Sets whether the user will be able to undock a pane and turn it into a floating window.
Parameters: | b – whether the pane can be floated or not. |
---|
Sets the position of the floating pane.
Parameters: | pos – a wx.Point or a tuple indicating the pane floating position. |
---|
Sets the size of the floating pane.
Parameters: | size – a wx.Size or a tuple indicating the pane floating size. |
---|
Indicates whether a pane, when floating, has a “fly-out” effect (i.e., floating panes which only show themselves when moused over).
Parameters: | b – whether the pane can be snapped on the main frame or not. |
---|
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 |
Indicates that a gripper should be drawn for the pane.
Parameters: | visible – whether the gripper should be visible or not. |
---|
Indicates that a gripper should be drawn at the top of the pane.
Parameters: | attop – whether the gripper should be drawn at the top or not. |
---|
Returns True if the pane displays a caption on the left (rotated by 90 degrees).
Returns True if the the property specified by flag is active for the pane.
Parameters: | flag – the property to check for activity. |
---|
Returns whether a pane has a AuiNotebook or not.
Indicates that a pane should be hidden.
Calling Show (False) achieve the same effect.
Specifies whether an icon is drawn on the left of the caption text when the pane is docked. If icon is None or wx.NullIcon, no icon is drawn on the caption space.
Parameters: | icon – an icon to draw on the caption space, or None. |
---|
Returns True if the pane can be docked at the bottom of the managed frame.
Returns True if the pane can be snapped at the bottom of the managed frame.
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 a True input parameter will cause the window to be destroyed when the user clicks the pane’s close button.
Returns True if the pane dock_direction is horizontal.
Returns True if the pane can be snapped on the left of the managed frame.
Returns True if the docked frame can be undocked or moved to another dock position.
Returns whether the pane is a notebook control (AuiNotebook).
Returns True if a pane can be docked on top to another to create a AuiNotebook.
Returns whether the pane is a notebook page in a AuiNotebook.
Returns True if the AuiPaneInfo structure is valid.
Note
A pane structure is valid if it has an associated window.
Returns True if the pane can be docked at the right of the managed frame.
Returns True if the pane can be snapped on the right of the managed frame.
Returns True if the pane dock_direction is vertical.
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 – the layer of the docked pane. |
---|
Sets the pane dock position to the left side of the frame.
Note
This is the same thing as calling Direction with AUI_DOCK_LEFT as parameter.
Indicates whether a pane can be docked on the left of the frame.
Parameters: | b – whether the pane can be docked at the left or not. |
---|
Indicates whether a pane can be snapped on the left of the main frame.
Parameters: | b – whether the pane can be snapped at the left of the main frame or not. |
---|
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, then MaxSize1 is called. Otherwise, MaxSize2 is called.
Parameters: |
|
---|
Sets the maximum size of the pane.
See also
MaxSize for an explanation of input parameters.
Sets the maximum size of the pane.
See also
MaxSize for an explanation of input parameters.
Indicates that a maximize button should be drawn for the pane.
Parameters: | visible – whether the maximize button should be visible or not. |
---|
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, then MinSize1 is called. Otherwise, MinSize2 is called.
Parameters: |
|
---|
Sets the minimum size of the pane.
See also
MinSize for an explanation of input parameters.
Sets the minimum size of the pane.
See also
MinSize for an explanation of input parameters.
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.
Indicates that a minimize button should be drawn for the pane.
Parameters: | visible – whether the minimize button should be visible or not. |
---|
Sets the expected minimized mode if the MinimizeButton() is visible.
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 of AuiPaneInfo you pass as an input for MinimizeTarget must have a real name and not the randomly generated one. Remember to set the Name property of the toolbar pane before calling this method.
Minimizes the panes using a AuiPaneInfo as a target. As AuiPaneInfo 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 a AuiToolBar. |
---|
Note
In order to use this functionality (and with the AUI_MINIMIZE_POS_TOOLBAR flag set), the instance of AuiPaneInfo you pass as an input must have a real name and not the randomly generated one. Remember to set the Name property of the toolbar pane before calling this method.
Indicates whether a pane can be moved.
Parameters: | b – whether the pane can be moved or not. |
---|
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() and AuiManager.LoadPerspective(), you will have to specify a name for your pane using Name, as randomly generated names can not be properly restored.
Forces a pane to be a notebook control (AuiNotebook).
Parameters: | id – the notebook id. |
---|
Indicates whether a pane can be docked in an automatic AuiNotebook.
Parameters: | b – whether the pane can be docked in a notebook or not. |
---|
Forces a pane to be a notebook page, so that the pane can be docked on top to another to create a AuiNotebook.
Parameters: |
|
---|
Indicates that a border should be drawn for the pane.
Parameters: | visible – whether the pane border should be visible or not. |
---|
Indicates that a pin button should be drawn for the pane.
Parameters: | visible – whether the pin button should be visible or not. |
---|
Determines the position of the docked pane.
Parameters: | pos – the position of the docked pane. |
---|
Resets all the buttons and recreates them from scratch depending on the AuiPaneInfo flags.
Allows a pane to be resizable if resizable is True, and forces it to be a fixed size if resizeable is False.
If resizable is False, this is simply an antonym for Fixed.
Parameters: | resizable – whether the pane will be resizeable or not. |
---|
Sets the pane dock position to the right side of the frame.
Note
This is the same thing as calling Direction with AUI_DOCK_RIGHT as parameter.
Indicates whether a pane can be docked on the right of the frame.
Parameters: | b – whether the pane can be docked at the right or not. |
---|
Indicates whether a pane can be snapped on the right of the main frame.
Parameters: | b – whether the pane can be snapped at the right of the main frame or not. |
---|
Determines the row of the docked pane.
Parameters: | row – the row of the docked pane. |
---|
Copies the source pane members that pertain to docking position to self.
Parameters: | source – the source pane from where to copy the attributes. |
---|
Turns the property given by flag on or off with the option_state parameter.
Parameters: |
|
---|
Sets the pane name once docked in a AuiNotebook using the notebook id.
Indicates that a pane should be shown.
Parameters: | show – whether the pane should be shown or not. |
---|
Indicates whether a pane can be snapped on the main frame. This is equivalent as calling TopSnappable . BottomSnappable . LeftSnappable . RightSnappable .
Parameters: | b – whether the pane can be snapped on the main frame or not. |
---|
Sets the pane dock position to the top of the frame.
Note
This is the same thing as calling Direction with AUI_DOCK_TOP as parameter.
Indicates whether a pane can be docked at the top of the frame.
Parameters: | b – whether the pane can be docked at the top or not. |
---|
Indicates whether a pane can be snapped at the top of the main frame.
Parameters: | b – whether the pane can be snapped at the top of the main frame or not. |
---|
Makes the pane transparent when floating.
Parameters: | alpha – an integer value between 0 and 255 for pane transparency. |
---|
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. |
---|
Getter for the dock_direction.
See also
dock_direction_set for a set of valid docking directions.
Getter for the dock_direction.
See also
dock_direction_set for a set of valid docking directions.
Setter for the dock_direction.
Parameters: | value – the docking direction. This cab ne 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. |