The wxDocMDIChildFrame class provides a default frame for displaying documents on separate windows. This class can only be used for MDI child frames.
The class is part of the document/view framework supported by wxWindows, and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate classes.
Constructor. Note that the event table must be rebuilt for the |
|
Activates the current view. |
|
Returns the document associated with this frame. |
|
Returns the view associated with this frame. |
|
Sets the currently active view to be the frame’s view. You may need to |
|
Closes and deletes the current view and document. |
|
Add/remove to the frame’s title an indication that the document is dirty. |
|
Processes an event, searching event tables and calling zero or more |
|
Sets the document for this frame. |
|
Sets the view for this frame. |
DocMDIChildFrame
(wx.MDIChildFrame)¶The wxDocMDIChildFrame class provides a default frame for displaying documents on separate windows. This class can only be used for MDI child frames.
The class is part of the document/view framework supported by wxWindows, and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate classes.
__init__
(self, doc, view, frame, id, title, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE, name="frame")¶Constructor. Note that the event table must be rebuilt for the frame since the EvtHandler is not virtual.
Activate
(self)¶Activates the current view.
GetDocument
(self)¶Returns the document associated with this frame.
GetView
(self)¶Returns the view associated with this frame.
OnActivate
(self, event)¶Sets the currently active view to be the frame’s view. You may need to override (but still call) this function in order to set the keyboard focus for your subwindow.
OnCloseWindow
(self, event)¶Closes and deletes the current view and document.
OnTitleIsModified
(self)¶Add/remove to the frame’s title an indication that the document is dirty. If the document is dirty, an ‘*’ is appended to the title
ProcessEvent
(event)¶Processes an event, searching event tables and calling zero or more suitable event handler function(s). Note that the ProcessEvent method is called from the wxPython docview framework directly since wxPython does not have a virtual ProcessEvent function.
SetDocument
(self, document)¶Sets the document for this frame.
SetView
(self, view)¶Sets the view for this frame.