parameters: (self)
docstring: Removes all the empty tab frames.
docstring_summary: Removes all the empty tab frames.
docstring_tokens: Removes all the empty tab frames .
function: def RemoveEmptyTabFrames(self):
          """ Removes all the empty tab frames. """
  
          # if we've just removed the last tab from the source
          # tab set, the remove the tab control completely
          all_panes = self._mgr.GetAllPanes()
  
          for indx in xrange(len(all_panes)-1, -1, -1):
              pane = all_panes[indx]
              if pane.name == "dummy":
                  continue
  
              tab_frame = pane.window
              if tab_frame._tabs.GetPageCount() == 0:
                  self._mgr.DetachPane(tab_frame)
                  tab_frame._tabs.Destroy()
                  tab_frame._tabs = None
                  del tab_frame
  
          # check to see if there is still a center pane
          # if there isn't, make a frame the center pane
          first_good = None
          center_found = False
  
          all_panes = self._mgr.GetAllPanes()
          for pane in all_panes:
              if pane.name == "dummy":
                  continue
  
              if pane.dock_direction == AUI_DOCK_CENTRE:
                  center_found = True
              if not first_good:
                  first_good = pane.window
  
          if not center_found and first_good:
              self._mgr.GetPane(first_good).Centre()
  
          if not self.IsBeingDeleted():
              self._mgr.Update()
function_tokens: def RemoveEmptyTabFrames ( self ) : # if we've just removed the last tab from the source # tab set, the remove the tab control completely all_panes = self . _mgr . GetAllPanes ( ) for indx in xrange ( len ( all_panes ) - 1 , - 1 , - 1 ) : pane = all_panes [ indx ] if pane . name == "dummy" : continue tab_frame = pane . window if tab_frame . _tabs . GetPageCount ( ) == 0 : self . _mgr . DetachPane ( tab_frame ) tab_frame . _tabs . Destroy ( ) tab_frame . _tabs = None del tab_frame # check to see if there is still a center pane # if there isn't, make a frame the center pane first_good = None center_found = False all_panes = self . _mgr . GetAllPanes ( ) for pane in all_panes : if pane . name == "dummy" : continue if pane . dock_direction == AUI_DOCK_CENTRE : center_found = True if not first_good : first_good = pane . window if not center_found and first_good : self . _mgr . GetPane ( first_good ) . Centre ( ) if not self . IsBeingDeleted ( ) : self . _mgr . Update ( )