parameters: (self, parent, tools=[], callback=None, n_buttoncolumns=3)
docstring: callback is a function that is called when a tool has been selected.
          The function is called as:
              callback(tool)
docstring_summary: callback is a function that is called when a tool has been selected.
          The function is called as:
              callback(tool)
docstring_tokens: callback is a function that is called when a tool has been selected . The function is called as : callback ( tool )
function: def __init__(self, parent, tools=[], callback=None, n_buttoncolumns=3):
          """
          callback is a function that is called when a tool has been selected.
          The function is called as:
              callback(tool)
  
          """
          # the metacanvas object with which the pallet should apply th tools
  
          # callback when a new tool gets selected (NOT in USE)
          self._callback = callback
  
          # wx.Window.__init__(self,parent,wx.ID_ANY,wx.DefaultPosition,wx.DefaultSize,wx.SUNKEN_BORDER|wx.WANTS_CHARS)
          # wx.Panel.__init__(self,parent,wx.ID_ANY,wx.DefaultPosition,size,wx.RAISED_BORDER|wx.WANTS_CHARS)
          wx.Panel.__init__(self, parent, -1, wx.DefaultPosition, wx.DefaultSize)
          # wx.Panel.__init__(self,parent,wx.ID_ANY,wx.DefaultPosition,(300,600),wx.RAISED_BORDER|wx.WANTS_CHARS)
          self.sizer = wx.GridSizer(0, n_buttoncolumns, 5, 5)
          self.SetSizer(self.sizer)
          self._id_to_tool = {}
          self._id = -1
  
          for tool in tools:
              self.add_tool(tool)
function_tokens: def __init__ ( self , parent , tools = [ ] , callback = None , n_buttoncolumns = 3 ) : # the metacanvas object with which the pallet should apply th tools # callback when a new tool gets selected (NOT in USE) self . _callback = callback # wx.Window.__init__(self,parent,wx.ID_ANY,wx.DefaultPosition,wx.DefaultSize,wx.SUNKEN_BORDER|wx.WANTS_CHARS) # wx.Panel.__init__(self,parent,wx.ID_ANY,wx.DefaultPosition,size,wx.RAISED_BORDER|wx.WANTS_CHARS) wx . Panel . __init__ ( self , parent , - 1 , wx . DefaultPosition , wx . DefaultSize ) # wx.Panel.__init__(self,parent,wx.ID_ANY,wx.DefaultPosition,(300,600),wx.RAISED_BORDER|wx.WANTS_CHARS) self . sizer = wx . GridSizer ( 0 , n_buttoncolumns , 5 , 5 ) self . SetSizer ( self . sizer ) self . _id_to_tool = { } self . _id = - 1 for tool in tools : self . add_tool ( tool )