Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Tkinter's tkapp?

I'm using Tkinter in Python, and trying to create code to run when a text box's value is changed. All the code I find online uses a mysterious tk member of Tkinter widgets, and I can't find any documentation on it! I found it's of type tkapp, but there's no documentation on that either.

Where can I find a decent resource which explains to me the workings of this mysterious thing? (Even better, where can I just find documentation on Tkinter? All I can find are tutorials).

like image 260
bfops Avatar asked Nov 13 '22 20:11

bfops


1 Answers

Probably the best single resource for Tkinter is this page in the Python.org wiki. There is also the documentation in the Python Library Reference (for 2.7 and for 3.2). Unfortunately, because much of Tkinter is basically a wrapper around existing Tk functionality, a lot of the documentation for Tkinter assumes you know Tk already so reading the Tk documentation is important, too.

like image 184
Ned Deily Avatar answered Dec 18 '22 11:12

Ned Deily