def METHOD_NAME(tool):
    panel.tool = tool
    if tool=='pen':
        zone.style.cursor = 'default'
    elif tool=='select':
        zone.style.cursor = 'crosshair'
    elif tool=='rubber':
        zone.style.cursor = 'pointer'
    elif tool in ['color', 'bgcolor']:
        pick_color(tool)