[Tkinter-discuss] (newbie) can't invoke button for twice

dmitrey dmitrey15 at ukr.net
Sat Sep 20 21:10:45 CEST 2008

hi all,
I have the problem:
a func has been binded to a Button:

RunPause = Button(root, textvariable = t, command = lambda:

def invokeRunPause(p):
    if p.state == 'init':
        p.state = 'running'
        t.set('    Pause    ')
        p.tmp_result = p.solve(*p._args, **p._kwargs)

    elif p.state == 'running':
So the problem is that I can't invoke the button RunPause till my
calculations (in p.solve()) will be finished. I can observe it even
graphically, the button doesn't respond when it is pressed.
Could anyone provide a solution?

Thank you ion advance, Dmitrey.
View this message in context: http://www.nabble.com/%28newbie%29-can%27t-invoke-button-for-twice-tp19588292p19588292.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.

More information about the Tkinter-discuss mailing list