Return value using button
<p>I'm trying to return a value using a button, but i just can't get it to work. What i want is the button to return a value which later on can be used to check is the function was used or not. The code that I'm using is the following:</p>

<pre><code>from Tkinter import *
master = Tk()
master.geometry("200x100")
def bla():
    return 1
Button(master, command = bla, text = 'OK').pack()

if bla == 1:
    print('1')

mainloop()
</code></pre>

<p>I've also tried to do this using lambda but i could not figure that one out too.</p>