Python Forum

Full Version: I finsh the basics of python but I'm stuck on how to link code to GUI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I finsh the basics of python but I'm stuck on how to link code to GUI, any advice or tips ? Or websites that can help me learn the standard way of creating a GUI and link it ot the code?!
Hello!
You can start from here: https://python-forum.io/Forum-GUI-tutorials

Tkinter is GUI library built-in Python and this is a good point to start.
I still consider myself a newbie in python. TKinter is the best and the easiest to learn, as wavic stated.
As for linking it to code, you would just need to reconfigure your variables to get their values from TKinter entry.
tkinter is quite easy. You can start using it after about an hour of experimentation
I post quite a bit of tkinter code under scripts & snippits
see https://python-forum.io/Thread-Californi...lary-Files
and https://python-forum.io/Thread-Show-Inst...age-detail
which both use many widgets.

also, here's a demo:

[Image: zip.png]   TkinterDemo.zip (Size: 179.65 KB / Downloads: 8)
When you talk about Python basics, did you already master classes? Because classes are really helpful for GUI related programs. Without a good understanding you might struggle a bit
(Apr-03-2017, 02:51 PM)alicarlos13 Wrote: [ -> ]TKinter is the best and the easiest to learn

Easiest to learn, yes. Sufficient for most purposes, yes. Best? It lacks some important capabilities like multithread support...