parameters: (self, parent, colourData)
docstring: Default class constructor.
          Used internally. Do not call it in your code!
  
          :param `parent`: the control parent window;
          :param `colourData`: an instance of :class:`ColourData`.
docstring_summary: Default class constructor.
          Used internally. Do not call it in your code!
docstring_tokens: Default class constructor . Used internally . Do not call it in your code!
function: def __init__(self, parent, colourData):
          """
          Default class constructor.
          Used internally. Do not call it in your code!
  
          :param `parent`: the control parent window;
          :param `colourData`: an instance of :class:`ColourData`.
          """
          
          wx.PyControl.__init__(self, parent, style=wx.NO_BORDER)
          self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
  
          self._colourData = colourData
          self._customColours = [None]*16
          self._mainDialog = wx.GetTopLevelParent(self)
          
          self.InitializeColours()
  
          self._smallRectangleSize = wx.Size(20, 16)
          self._gridSpacing = 4
          self._customColourRect = wx.Rect(2, 2, (8*self._smallRectangleSize.x) + (7*self._gridSpacing),
                                           (2*self._smallRectangleSize.y) + (1*self._gridSpacing))
  
          self.Bind(wx.EVT_PAINT, self.OnPaint)
          self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
          self.Bind(wx.EVT_SIZE, self.OnSize)
          self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
function_tokens: def __init__ ( self , parent , colourData ) : wx . PyControl . __init__ ( self , parent , style = wx . NO_BORDER ) self . SetBackgroundStyle ( wx . BG_STYLE_CUSTOM ) self . _colourData = colourData self . _customColours = [ None ] * 16 self . _mainDialog = wx . GetTopLevelParent ( self ) self . InitializeColours ( ) self . _smallRectangleSize = wx . Size ( 20 , 16 ) self . _gridSpacing = 4 self . _customColourRect = wx . Rect ( 2 , 2 , ( 8 * self . _smallRectangleSize . x ) + ( 7 * self . _gridSpacing ) , ( 2 * self . _smallRectangleSize . y ) + ( 1 * self . _gridSpacing ) ) self . Bind ( wx . EVT_PAINT , self . OnPaint ) self . Bind ( wx . EVT_ERASE_BACKGROUND , self . OnEraseBackground ) self . Bind ( wx . EVT_SIZE , self . OnSize ) self . Bind ( wx . EVT_LEFT_DOWN , self . OnLeftDown )