Clara wrote:
<SNIP>
                self.loginButton = Button(self, text='Login', command =
VerifyProcessor(self.x.get(), self.y.get()) )
<SNIP>

class VerifyProcessor:

        def __init__(self, thename, thepass):
                self.username = thename
                self.password = thepass

        def __call__(self):
                print self.username
                print self.password

Your VerifyProcessor object is constructed just before your loginButton, not when you click.
Therefore you may want to pass the x and y StringVars to its __init__ function instead of their value at contruction. Therefore your __call__ method can .get() their values each time the button is clicked.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to