parameters: (self, dc, _rect, bmp, bkcolour, button_state)
docstring: Convenience method to draw tab buttons.
  
          :param `dc`: a :class:`DC` device context;
          :param Rect `_rect`: the tab rectangle;
          :param Bitmap `bmp`: the tab bitmap;
          :param Colour `bkcolour`: the tab background colour;
          :param integer `button_state`: the state of the tab button.
docstring_summary: Convenience method to draw tab buttons.
docstring_tokens: Convenience method to draw tab buttons .
function: def DrawButtons(self, dc, _rect, bmp, bkcolour, button_state):
          """
          Convenience method to draw tab buttons.
  
          :param `dc`: a :class:`DC` device context;
          :param Rect `_rect`: the tab rectangle;
          :param Bitmap `bmp`: the tab bitmap;
          :param Colour `bkcolour`: the tab background colour;
          :param integer `button_state`: the state of the tab button.
          """
  
          rect = wx.Rect(*_rect)
  
          if button_state == AUI_BUTTON_STATE_PRESSED:
              rect.x += 1
              rect.y += 1
  
          if button_state in [AUI_BUTTON_STATE_HOVER, AUI_BUTTON_STATE_PRESSED]:
              dc.SetBrush(wx.Brush(StepColour(bkcolour, 120)))
              dc.SetPen(wx.Pen(StepColour(bkcolour, 75)))
  
              # draw the background behind the button
              dc.DrawRectangle(rect.x, rect.y, 15, 15)
  
          # draw the button itself
          dc.DrawBitmap(bmp, rect.x, rect.y, True)
function_tokens: def DrawButtons ( self , dc , _rect , bmp , bkcolour , button_state ) : rect = wx . Rect ( * _rect ) if button_state == AUI_BUTTON_STATE_PRESSED : rect . x += 1 rect . y += 1 if button_state in [ AUI_BUTTON_STATE_HOVER , AUI_BUTTON_STATE_PRESSED ] : dc . SetBrush ( wx . Brush ( StepColour ( bkcolour , 120 ) ) ) dc . SetPen ( wx . Pen ( StepColour ( bkcolour , 75 ) ) ) # draw the background behind the button dc . DrawRectangle ( rect . x , rect . y , 15 , 15 ) # draw the button itself dc . DrawBitmap ( bmp , rect . x , rect . y , True )