title: Change the value of a variable with a button (Tkinter)
body: <p>I want to change the value of a variable just with a button, i don't want to create a new entire function just like that:</p>
  
  <pre><code>from Tkinter import *
  variable = 1
  def makeSomething():
      global variable
      variable = 2
  root = Tk()
  myButton = Button(root, text='Press me',command=makeSomething).pack()
  </code></pre>
  
  <p>How i can do that?
  (I need to do that for six buttons, making six functions it's not an option)</p>