parameters: (self, evt)
docstring: Handles Paged Closed Event
          @param evt: aui.EVT_AUINOTEBOOK_PAGE_CLOSED
docstring_summary: Handles Paged Closed Event
          @param evt: aui.EVT_AUINOTEBOOK_PAGE_CLOSED
docstring_tokens: Handles Paged Closed Event @param evt : aui . EVT_AUINOTEBOOK_PAGE_CLOSED
function: def OnPageClosed(self, evt):
          """Handles Paged Closed Event
          @param evt: aui.EVT_AUINOTEBOOK_PAGE_CLOSED
  
          """
          frame = self.TopLevelParent
          with eclib.Freezer(frame) as _tmp:
              cpage = evt.GetSelection()
              evt.Skip()
              self.LOG("[ed_pages][evt] Closed Page: #%d" % cpage)
              self.UpdateIndexes()
              ed_msg.PostMessage(ed_msg.EDMSG_UI_NB_CLOSED,
                                 (self, cpage),
                                 context=self.frame.Id)
  
              if not self.GetPageCount() and \
                 hasattr(frame, 'IsExiting') and not frame.IsExiting():
                  self.NewPage()
              elif not self.frame.IsExiting():
                  self.SaveCurrentSession()
function_tokens: def OnPageClosed ( self , evt ) : frame = self . TopLevelParent with eclib . Freezer ( frame ) as _tmp : cpage = evt . GetSelection ( ) evt . Skip ( ) self . LOG ( "[ed_pages][evt] Closed Page: #%d" % cpage ) self . UpdateIndexes ( ) ed_msg . PostMessage ( ed_msg . EDMSG_UI_NB_CLOSED , ( self , cpage ) , context = self . frame . Id ) if not self . GetPageCount ( ) and hasattr ( frame , 'IsExiting' ) and not frame . IsExiting ( ) : self . NewPage ( ) elif not self . frame . IsExiting ( ) : self . SaveCurrentSession ( )