Python Forum
I finsh the basics of python but I'm stuck on how to link code to GUI
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I finsh the basics of python but I'm stuck on how to link code to GUI
#1
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?!
Reply
#2
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.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
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.
Reply
#4
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)
Reply
#5
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
Reply
#6
(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...
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Beginner stuck in Python book for kids mic81k 11 1,125 Nov-27-2023, 04:28 AM
Last Post: deanhystad
Sad I'm stuck with the reinforcement learning function in my Code OskiLori 2 1,515 May-20-2023, 10:01 PM
Last Post: OskiLori
  How do I link the virtual environment of that project to the 3.9.2 version of python? Bryant11 1 1,332 Feb-26-2022, 11:15 AM
Last Post: Larz60+
  I can't open a link with Selenium in Python jao 0 1,370 Jan-30-2022, 04:21 AM
Last Post: jao
  Learned Python Basics, what now? muzikman 20 5,861 Oct-11-2021, 01:34 AM
Last Post: Underscore
  Parsing link from html tags with Python Melcu54 0 1,575 Jun-14-2021, 09:25 AM
Last Post: Melcu54
  How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10 Fanman001 2 4,532 Mar-04-2021, 03:09 PM
Last Post: martpogs
  Code not reading http link from .txt file (Beginner level) plarrip 3 2,354 Dec-17-2020, 11:33 PM
Last Post: bowlofred
  How to skip LinkedIn signup link using python script? Mangesh121 0 1,766 Aug-26-2020, 01:22 PM
Last Post: Mangesh121
  Stuck on python quiz challenge baesian 2 2,153 Aug-16-2020, 12:52 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020