wx.aui.AuiMDIChildFrame¶
wx.aui.AuiMDIChildFrame represents one child document inside an wx.aui.AuiMDIParentFrame.
In AUI MDI, child frames are displayed as pages of the parent’s wx.aui.AuiMDIClientWindow, not as independently movable native child frames. The child’s title is used as the tab label and its menu bar, if any, is shown by the parent frame while the child is active.
Create AUI MDI children with a wx.aui.AuiMDIParentFrame parent, not directly with the client notebook.
Class Hierarchy¶
Methods Summary¶
Default constructor. |
|
Used in two-step child-frame construction. |
|
Destroys the window safely. |
|
Returns the |
|
Returns the child title. |
|
Returns |
|
Sets the |
|
Sets the child title, which is used as its notebook tab label. |
|
Shows or hides the window. |
|
Properties Summary¶
See |
|
See |
|
See |
|
See |
Class API¶
- class wx.aui.AuiMDIChildFrame(TDIChildFrame)¶
Possible constructors:
AuiMDIChildFrame() -> None AuiMDIChildFrame(parent, winid=ID_ANY, title='', pos=DefaultPosition, size=DefaultSize, style=DEFAULT_FRAME_STYLE, name=FrameNameStr) -> None
AuiMDIChildFrame represents one child document inside an AuiMDIParentFrame.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
Default constructor.
Use
Createto finish constructing the child frame.- Return type:
None
__init__ (self, parent, winid=ID_ANY, title=’’, pos=DefaultPosition, size=DefaultSize, style=DEFAULT_FRAME_STYLE, name=FrameNameStr)
Constructor, creating the child frame.
- Parameters:
parent (wx.aui.AuiMDIParentFrame)
winid (wx.WindowID)
title (string)
pos (wx.Point)
size (wx.Size)
style (long)
name (string)
- Return type:
None
- Activate(self)¶
- Return type:
None
- Create(self, parent, winid=ID_ANY, title='', pos=DefaultPosition, size=DefaultSize, style=DEFAULT_FRAME_STYLE, name=FrameNameStr)¶
Used in two-step child-frame construction.
See wx.aui.AuiMDIChildFrame for the parameter descriptions.
- Parameters:
parent (wx.aui.AuiMDIParentFrame)
winid (wx.WindowID)
title (string)
pos (wx.Point)
size (wx.Size)
style (long)
name (string)
- Return type:
bool
- CreateStatusBar(self, number=1, style=1, winid=1, name='')¶
- Parameters:
number (int)
style (long)
winid (wx.WindowID)
name (string)
- Return type:
- CreateToolBar(self, style, winid, name)¶
- Parameters:
style (long)
winid (wx.WindowID)
name (string)
- Return type:
- Destroy(self)¶
Destroys the window safely.
Use this function instead of the delete operator, since different window classes can be destroyed differently. Frames and dialogs are not destroyed immediately when this function is called – they are added to a list of windows to be deleted on idle time, when all the window’s events have been processed. This prevents problems with events being sent to non-existent windows.
- Return type:
bool
- Returns:
Trueif the window has either been successfully deleted, or it has been added to the list of windows pending real deletion.
- static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
- Parameters:
variant (WindowVariant)
- Return type:
VisualAttributes
- GetIcons(self)¶
- Return type:
IconBundle
- GetMDIParentFrame(self)¶
Returns the
AUIMDI parent frame containing this child.- Return type:
- GetTitle(self)¶
Returns the child title.
- Return type:
str
- Iconize(self, iconize=True)¶
- Parameters:
iconize (bool)
- Return type:
None
- IsFullScreen(self)¶
- Return type:
bool
- IsIconized(self)¶
- Return type:
bool
- IsMaximized(self)¶
- Return type:
bool
- IsTopLevel(self)¶
Returns
Trueif the given window is a top-level one.Currently all frames and dialogs are considered to be top-level windows (even if they have a parent window).
- Return type:
bool
- Maximize(self, maximize=True)¶
- Parameters:
maximize (bool)
- Return type:
None
- Restore(self)¶
- Return type:
None
- SetIcons(self, icons)¶
- Parameters:
icons (wx.IconBundle)
- Return type:
None
- SetMDIParentFrame(self, parent)¶
Sets the
AUIMDI parent frame containing this child.- Parameters:
parent (wx.aui.AuiMDIParentFrame)
- Return type:
None
- SetMenuBar(self, menuBar)¶
- Parameters:
menuBar (wx.MenuBar)
- Return type:
None
- SetStatusText(self, text, number=0)¶
- Parameters:
text (string)
number (int)
- Return type:
None
- SetStatusWidths(self, widths)¶
- Parameters:
widths (list of integers)
- Return type:
None
- SetTitle(self, title)¶
Sets the child title, which is used as its notebook tab label.
- Parameters:
title (string)
- Return type:
None
- Show(self, show=True)¶
Shows or hides the window.
You may need to call
Raisefor a top level window if you want to bring it to top, although this is not needed ifShowis called immediately after the frame creation.Notice that the default state of newly created top level windows is hidden (to allow you to create their contents without flicker) unlike for all the other, not derived from wx.TopLevelWindow, windows that are by default created in the shown state.
- Parameters:
show (bool) – If
Truedisplays the window. Otherwise, hides it.- Return type:
bool
- Returns:
Trueif the window has been shown or hidden orFalseif nothing was done because it already was in the requested state.
See also
IsShown,Hide,wx.RadioBox.Show, wx.ShowEvent.
- ShowFullScreen(self, show, style)¶
- Parameters:
show (bool)
style (long)
- Return type:
bool
Properties¶
- MDIParentFrame¶
See
GetMDIParentFrameandSetMDIParentFrame
- MenuBar¶
See
GetMenuBarandSetMenuBar
- StatusBar¶
See
GetStatusBar
- ToolBar¶
See
GetToolBar
