title: Python 3.4 GUI if statement with buttons
body: <p>I'm trying to learn coding with python 3.4. I built this mini GUI and I'm having trouble getting it to work. It prints out 2 every time even though I press the button 1 . All I want to do is to get 1 printed out in the label when I click the button on and 2 with button two with an if statement.</p>
  
  <pre><code>from tkinter import *
  root = Tk()
  root.geometry("500x500")
  root.title("Test")
  
  
  def button_press():
      if one:
          x = 1
          display.configure(text=x)
      if two:
          x = 2
          display.configure(text=x)
  
  display = LabelFrame(root, bg="red", width="462", height="60")
  display.pack()
  
  one = Button(root, text="1", width="15", height="5",command=button_press)
  one.pack(side="left")
  
  
  two = Button(root, text="2", width="15", height="5", command=button_press)
  two.pack(side="left")
  
  root.mainloop()
  </code></pre>