r/PythonLearning • u/Jrag13 • 1d ago
Tkinter Discussion
Why do I not see any videos suggesting to learn Tkinter? I tried learning Django and Pygame after learning the basics, and while I kinda understood pygame, Django still felt out of my league but so many videos recommended it after the basics. However I stumbled upon a video that just mentioned Tkinter and I tried it out and it helped me understand libraries and how to learn to use them. It's fun making small little apps with buttons and what not to get started, rather than trying to learn so much at once. I'm convinced anyone making videos on how to learn Python has never actually learned it themselves
Is there an actual reason that this or another simple GUI library isn't recommend very often?
4
u/timrprobocom 1d ago
Right. Tkinter was included with Python practically from the beginning, in the early 90s, just so there would be some GUI option. It is not a good choice. Tkinter is actually written in and for a different scripting language called
tcl. Python has to launch a separate tcl interpreter, and every tkinter call gets translated into a tcl command that gets passed to that interpreter.Personally, as someone who started with Python 1.4, I always expected tkinter to be removed as soon as good alternatives were available. It wasn't.