parameters: (self, doc, view, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE)
return_statement: return frame
docstring: Creates and returns an MDI Document Frame.
docstring_summary: Creates and returns an MDI Document Frame.
docstring_tokens: Creates and returns an MDI Document Frame .
function: def CreateMDIDocumentFrame(self, doc, view, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE):
          """
          Creates and returns an MDI Document Frame.
          """
          # if any child windows are maximized, then user must want any new children maximized
          # if no children exist, then use the default value from registry
          # wxBug:  Only current window is maximized, so need to check every child frame
          parentFrame = wx.GetApp().GetTopWindow()
          childrenMaximized = filter(lambda child: isinstance(child, wx.MDIChildFrame) and child.IsMaximized(), parentFrame.GetChildren())
          if childrenMaximized:
              maximize = True
          else:
              children = filter(lambda child: isinstance(child, wx.MDIChildFrame), parentFrame.GetChildren())
              if children:
                  # other windows exist and none are maximized
                  maximize = False
              else:
                  # get default setting from registry
                  maximize = wx.ConfigBase_Get().ReadInt("MDIChildFrameMaximized", False)
  
          frame = wx.lib.docview.DocMDIChildFrame(doc, view, wx.GetApp().GetTopWindow(), id, title, pos, size, style)
          if maximize:  # wxBug: Should already be maximizing new child frames if one is maximized but it's not so we have to force it to
              frame.Maximize(True)
  
  ##        wx.EVT_MAXIMIZE(frame, self.OnMaximize) # wxBug: This doesn't work, need to save MDIChildFrameMaximized state on close of windows instead
          wx.EVT_CLOSE(frame, self.OnCloseChildWindow)
          if not self._registeredCloseEvent:
              wx.EVT_CLOSE(parentFrame, self.OnCloseMainWindow) # need to check on this, but only once
              self._registeredCloseEvent = True
  
          return frame
function_tokens: def CreateMDIDocumentFrame ( self , doc , view , id = - 1 , title = "" , pos = wx . DefaultPosition , size = wx . DefaultSize , style = wx . DEFAULT_FRAME_STYLE ) : # if any child windows are maximized, then user must want any new children maximized # if no children exist, then use the default value from registry # wxBug:  Only current window is maximized, so need to check every child frame parentFrame = wx . GetApp ( ) . GetTopWindow ( ) childrenMaximized = filter ( lambda child : isinstance ( child , wx . MDIChildFrame ) and child . IsMaximized ( ) , parentFrame . GetChildren ( ) ) if childrenMaximized : maximize = True else : children = filter ( lambda child : isinstance ( child , wx . MDIChildFrame ) , parentFrame . GetChildren ( ) ) if children : # other windows exist and none are maximized maximize = False else : # get default setting from registry maximize = wx . ConfigBase_Get ( ) . ReadInt ( "MDIChildFrameMaximized" , False ) frame = wx . lib . docview . DocMDIChildFrame ( doc , view , wx . GetApp ( ) . GetTopWindow ( ) , id , title , pos , size , style ) if maximize : # wxBug: Should already be maximizing new child frames if one is maximized but it's not so we have to force it to frame . Maximize ( True ) ##        wx.EVT_MAXIMIZE(frame, self.OnMaximize) # wxBug: This doesn't work, need to save MDIChildFrameMaximized state on close of windows instead wx . EVT_CLOSE ( frame , self . OnCloseChildWindow ) if not self . _registeredCloseEvent : wx . EVT_CLOSE ( parentFrame , self . OnCloseMainWindow ) # need to check on this, but only once self . _registeredCloseEvent = True return frame