parameters: (self, event)
docstring: Handles the ``wx.EVT_PAINT`` event for :class:`ButtonPanel`.
  
          :param `event`: a :class:`PaintEvent` event to be processed.
docstring_summary: Handles the ``wx.EVT_PAINT`` event for :class:`ButtonPanel`.
docstring_tokens: Handles the wx . EVT_PAINT event for : class : ButtonPanel .
function: def OnPaint(self, event):
          """
          Handles the ``wx.EVT_PAINT`` event for :class:`ButtonPanel`.
  
          :param `event`: a :class:`PaintEvent` event to be processed.
          """
  
          dc = wx.BufferedPaintDC(self) 
          rect = self.GetClientRect()
  
          self._art.DrawButtonPanel(dc, rect, self._agwStyle)
          self._mainsizer.Draw(dc)
function_tokens: def OnPaint ( self , event ) : dc = wx . BufferedPaintDC ( self ) rect = self . GetClientRect ( ) self . _art . DrawButtonPanel ( dc , rect , self . _agwStyle ) self . _mainsizer . Draw ( dc )