title: Use a function that needs an argument for onclick event (python turtle)
body: <p>I'm trying a drawing tool for Turtle, I want to be able to change the color of my brush. How do I use onclick() for a function that takes an argument 'color' ?</p>
  
  <pre><code>import turtle
  
  red_color = turtle.Turtle()
  red_color.color('red', 'red')
  
  def switch_color(color): 
      brush.color(color)
  
  def main():
  
      red_color.onclick(switch_color, 1)  # how do I choose the color I want it to change to
  
      screen.mainloop() 
  
  main()
  </code></pre>