parameters: (self, event)
docstring: Handles the ``wx.EVT_PAINT`` event for :class:`AuiTabCtrl`.
  
          :param `event`: a :class:`PaintEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_PAINT`` event for :class:`AuiTabCtrl`.
docstring_tokens: Handles the wx . EVT_PAINT event for : class : AuiTabCtrl .
function: def OnPaint(self, event):
          """
          Handles the ``wx.EVT_PAINT`` event for :class:`AuiTabCtrl`.
  
          :param `event`: a :class:`PaintEvent` event to be processed.
          """
  
          dc = wx.PaintDC(self)
          dc.SetFont(self.GetFont())
  
          if self.GetPageCount() > 0:
              self.Render(dc, self)
function_tokens: def OnPaint ( self , event ) : dc = wx . PaintDC ( self ) dc . SetFont ( self . GetFont ( ) ) if self . GetPageCount ( ) > 0 : self . Render ( dc , self )