parameters: (self, idx, enable=True)
docstring: Enables/disables a tab in the :class:`AuiTabContainer`.
  
          :param integer `idx`: the tab index;
          :param bool `enable`: ``True`` to enable a tab, ``False`` to disable it.
docstring_summary: Enables/disables a tab in the :class:`AuiTabContainer`.
docstring_tokens: Enables / disables a tab in the : class : AuiTabContainer .
function: def EnableTab(self, idx, enable=True):
          """
          Enables/disables a tab in the :class:`AuiTabContainer`.
  
          :param integer `idx`: the tab index;
          :param bool `enable`: ``True`` to enable a tab, ``False`` to disable it.
          """
  
          if idx < 0 or idx >= len(self._pages):
              raise Exception("Invalid Page index")
  
          self._pages[idx].enabled = enable
          wnd = self.GetWindowFromIdx(idx)
          wnd.Enable(enable)
function_tokens: def EnableTab ( self , idx , enable = True ) : if idx < 0 or idx >= len ( self . _pages ) : raise Exception ( "Invalid Page index" ) self . _pages [ idx ] . enabled = enable wnd = self . GetWindowFromIdx ( idx ) wnd . Enable ( enable )