parameters: (self, parentStyle)
docstring: Default class constructor.
  
          :param integer `parentStyle`: the window style for :class:`ButtonPanel`.
docstring_summary: Default class constructor.
docstring_tokens: Default class constructor .
function: def __init__(self, parentStyle):
          """
          Default class constructor.
  
          :param integer `parentStyle`: the window style for :class:`ButtonPanel`.
          """
  
          base_colour = wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)
  
          self._background_brush = wx.Brush(base_colour, wx.SOLID)
          self._gradient_colour_to = wx.WHITE
          self._gradient_colour_from = wx.SystemSettings_GetColour(wx.SYS_COLOUR_ACTIVECAPTION)
  
          if parentStyle & BP_USE_GRADIENT:
              self._border_pen = wx.Pen(wx.WHITE, 3)
              self._caption_text_colour = wx.WHITE
              self._buttontext_colour = wx.Colour(70, 143, 255)
              self._separator_pen = wx.Pen(BrightenColour(self._gradient_colour_from, 1.4))
              self._gradient_type = BP_GRADIENT_VERTICAL
          else:
              self._border_pen = wx.Pen(BrightenColour(base_colour, 0.9), 3)
              self._caption_text_colour = wx.BLACK
              self._buttontext_colour = wx.SystemSettings_GetColour(wx.SYS_COLOUR_BTNTEXT)
              self._separator_pen = wx.Pen(BrightenColour(base_colour, 0.9))
              self._gradient_type = BP_GRADIENT_NONE
              
          self._buttontext_inactive_colour = wx.SystemSettings_GetColour(wx.SYS_COLOUR_GRAYTEXT)
          self._selection_brush = wx.Brush(wx.Colour(225, 225, 255))
          self._selection_pen = wx.Pen(wx.SystemSettings_GetColour(wx.SYS_COLOUR_ACTIVECAPTION))
          
          sysfont = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
          self._caption_font = wx.Font(sysfont.GetPointSize(), wx.DEFAULT, wx.NORMAL, wx.BOLD,
                                       False, sysfont.GetFaceName())
          self._buttontext_font = wx.Font(sysfont.GetPointSize(), wx.DEFAULT, wx.NORMAL, wx.NORMAL,
                                          False, sysfont.GetFaceName())
     
          self._separator_size = 7
          self._margins_size = wx.Size(6, 6)
          self._caption_border_size = 3
          self._padding_size = wx.Size(6, 6)
function_tokens: def __init__ ( self , parentStyle ) : base_colour = wx . SystemSettings_GetColour ( wx . SYS_COLOUR_3DFACE ) self . _background_brush = wx . Brush ( base_colour , wx . SOLID ) self . _gradient_colour_to = wx . WHITE self . _gradient_colour_from = wx . SystemSettings_GetColour ( wx . SYS_COLOUR_ACTIVECAPTION ) if parentStyle & BP_USE_GRADIENT : self . _border_pen = wx . Pen ( wx . WHITE , 3 ) self . _caption_text_colour = wx . WHITE self . _buttontext_colour = wx . Colour ( 70 , 143 , 255 ) self . _separator_pen = wx . Pen ( BrightenColour ( self . _gradient_colour_from , 1.4 ) ) self . _gradient_type = BP_GRADIENT_VERTICAL else : self . _border_pen = wx . Pen ( BrightenColour ( base_colour , 0.9 ) , 3 ) self . _caption_text_colour = wx . BLACK self . _buttontext_colour = wx . SystemSettings_GetColour ( wx . SYS_COLOUR_BTNTEXT ) self . _separator_pen = wx . Pen ( BrightenColour ( base_colour , 0.9 ) ) self . _gradient_type = BP_GRADIENT_NONE self . _buttontext_inactive_colour = wx . SystemSettings_GetColour ( wx . SYS_COLOUR_GRAYTEXT ) self . _selection_brush = wx . Brush ( wx . Colour ( 225 , 225 , 255 ) ) self . _selection_pen = wx . Pen ( wx . SystemSettings_GetColour ( wx . SYS_COLOUR_ACTIVECAPTION ) ) sysfont = wx . SystemSettings . GetFont ( wx . SYS_DEFAULT_GUI_FONT ) self . _caption_font = wx . Font ( sysfont . GetPointSize ( ) , wx . DEFAULT , wx . NORMAL , wx . BOLD , False , sysfont . GetFaceName ( ) ) self . _buttontext_font = wx . Font ( sysfont . GetPointSize ( ) , wx . DEFAULT , wx . NORMAL , wx . NORMAL , False , sysfont . GetFaceName ( ) ) self . _separator_size = 7 self . _margins_size = wx . Size ( 6 , 6 ) self . _caption_border_size = 3 self . _padding_size = wx . Size ( 6 , 6 )