'Activate a tool and press its button.'

def activate(self, toolName):

    if self.active:
        self.buttons[self.active].configure(relief='raised')
    self.buttons[toolName].configure(relief='sunken')
    self.active = toolName
