Python is very easy to learn and it has the built in module tkinter to create GUI or graphic user interfaces. Let’s get started with a very simpe GUI with a button that does a very simple thing, it changes the text on the button itself. Let’s have fun. This video maybe followed by other ones to make the other widgets with tkinter.
import tkinter as tk def hello(): but["text"] = "You clicked" root = tk.Tk() but = tk.Button( root, text="Click", command=hello) but.pack() root.mainloop()
The next video is right here where we talk about labels in tkinter:
How to create a label in a GUI with Python
Subscribe to the newsletter for updates
Tkinter templates
My youtube channel
Twitter: @pythonprogrammi - python_pygame