parameters: (self, dc, wnd, caption, bitmap, active, close_button_state, control=None)
return_statement: return (tab_width, tab_height), x_extent
docstring: Returns the tab size for the given caption, bitmap and button state.
  
          :param `dc`: a :class:`DC` device context;
          :param `wnd`: a :class:`Window` instance object;
          :param string `caption`: the tab text caption;
          :param Bitmap `bitmap`: the bitmap displayed on the tab;
          :param bool `active`: whether the tab is selected or not;
          :param integer `close_button_state`: the state of the close button on the tab;
          :param Window `control`: a :class:`Window` instance inside a tab (or ``None``).
docstring_summary: Returns the tab size for the given caption, bitmap and button state.
docstring_tokens: Returns the tab size for the given caption bitmap and button state .
function: def GetTabSize(self, dc, wnd, caption, bitmap, active, close_button_state, control=None):
          """
          Returns the tab size for the given caption, bitmap and button state.
  
          :param `dc`: a :class:`DC` device context;
          :param `wnd`: a :class:`Window` instance object;
          :param string `caption`: the tab text caption;
          :param Bitmap `bitmap`: the bitmap displayed on the tab;
          :param bool `active`: whether the tab is selected or not;
          :param integer `close_button_state`: the state of the close button on the tab;
          :param Window `control`: a :class:`Window` instance inside a tab (or ``None``).
          """
          
          tab_size, x_extent = AuiDefaultTabArt.GetTabSize(self, dc, wnd, caption, bitmap,
                                                           active, close_button_state, control)
  
          tab_width, tab_height = tab_size        
  
          # add some padding
          tab_width += 10
  
          if not bitmap.IsOk():
              tab_width += 5
              
          tab_height += 2
  
          return (tab_width, tab_height), x_extent
function_tokens: def GetTabSize ( self , dc , wnd , caption , bitmap , active , close_button_state , control = None ) : tab_size , x_extent = AuiDefaultTabArt . GetTabSize ( self , dc , wnd , caption , bitmap , active , close_button_state , control ) tab_width , tab_height = tab_size # add some padding tab_width += 10 if not bitmap . IsOk ( ) : tab_width += 5 tab_height += 2 return ( tab_width , tab_height ) , x_extent