parameters: (self)
docstring: Create a new notebook page with a blank text control
          @postcondition: a new page with an untitled document is opened
docstring_summary: Create a new notebook page with a blank text control
          @postcondition: a new page with an untitled document is opened
docstring_tokens: Create a new notebook page with a blank text control @postcondition : a new page with an untitled document is opened
function: def NewPage(self):
          """Create a new notebook page with a blank text control
          @postcondition: a new page with an untitled document is opened
  
          """
          frame = self.TopLevelParent
          with eclib.Freezer(frame) as _tmp:
              self.control = ed_editv.EdEditorView(self)
              self.LOG("[ed_pages][evt] New Page Created")
              self.AddPage(self.control)
  
          # Set the control up the the preferred default lexer
          dlexer = Profile_Get('DEFAULT_LEX', 'str', synglob.LANG_TXT)
          ext_reg = syntax.ExtensionRegister()
          ext_lst = ext_reg.get(dlexer, ['txt', ])
          self.control.FindLexer(ext_lst[0])
          self.SetPageBitmap(self.GetSelection(), self.control.GetTabImage())
  
          # Set the modified callback notifier
          doc = self.control.GetDocument()
          doc.AddModifiedCallback(self.control.FireModified)
function_tokens: def NewPage ( self ) : frame = self . TopLevelParent with eclib . Freezer ( frame ) as _tmp : self . control = ed_editv . EdEditorView ( self ) self . LOG ( "[ed_pages][evt] New Page Created" ) self . AddPage ( self . control ) # Set the control up the the preferred default lexer dlexer = Profile_Get ( 'DEFAULT_LEX' , 'str' , synglob . LANG_TXT ) ext_reg = syntax . ExtensionRegister ( ) ext_lst = ext_reg . get ( dlexer , [ 'txt' , ] ) self . control . FindLexer ( ext_lst [ 0 ] ) self . SetPageBitmap ( self . GetSelection ( ) , self . control . GetTabImage ( ) ) # Set the modified callback notifier doc = self . control . GetDocument ( ) doc . AddModifiedCallback ( self . control . FireModified )