This is some Python code I've been trying to deal with, its using the Tkinter resources.
I'm trying to figure out why the string test is constantly returning an empty string.
Even when I type something in the entry and press the Connect button, nothing is happening.
Actually I do know whats happening but can't figure out how to resolve it. Connect is being called before I even press the Connect button. Why is this? I noticed this by the fact that as soon as I start my application, the line print "connecting" is being executed. Why is this.
def connect(): global test test = str(field1.get()) print "connecting..." print test