Monday, 15 July 2013

python - call inner function from tkinter Button -



python - call inner function from tkinter Button -

i have button

b3 = button(master, text="answer", width=14, height=3, command=lambda: sendmessage())

and worker() function has inner function sendmessage(). set sendmessage() in worker() cauz there few defined local variables should have in sendmessage(). cant phone call sendmessage() button, have error - nameerror: global name 'sendmessage' not defined

how can tie inner function button ?

python tkinter scope

No comments:

Post a Comment