💻 In this video, I show you how to build a simple Python GUI Counter using Tkinter!
This is one of the easiest and best beginner projects to understand buttons, labels, functions, and GUI programming in Python.
🌟 What you’ll learn in this video:
✔ How to create a Tkinter window
✔ How to make buttons (Increment, Decrement, Reset)
✔ How to update text dynamically
✔ How global variables work in Python
✔ A clean and simple GUI project you can build in minutes
📌 Perfect for:
– Python beginners
– Students learning Tkinter
– Anyone doing Python projects
– People who want fast & easy GUI projects
🧠 Source Code Used in the Video:
(You can add your GitHub link or paste the code in the description)
🔥 If you want more Python tutorials, GUI projects, Tkinter apps, and beginner-friendly coding videos — make sure to like, comment, and subscribe!
#️⃣ Tags (copy/paste):
python, python tutorial, tkinter tutorial, python gui, python project, tkinter python, beginner python project, python counter app, learn tkinter, python coding, python for beginners, easy python project
import tkinter as tk
def increase():
global count
count += 1
label_var.set(str(count))
def decrease():
global count
count -= 1
label_var.set(str(count))
def reset():
global count
count = 0
label_var.set(str(count))
root = tk.Tk()
root.title("Counter GUI")
root.geometry("300x300")
root.configure(bg="#f0f0f0")
count = 0
label_var = tk.StringVar(value=str(count))
label = tk.Label(root, textvariable=label_var, font=("Arial", 40), bg="#f0f0f0")
label.pack(pady=20)
btn_frame = tk.Frame(root, bg="#f0f0f0")
btn_frame.pack()
tk.Button(btn_frame, text="Increment", command=increase, width=10, bg="#b3ffb3").grid(row=0, column=0, padx=5)
tk.Button(btn_frame, text="Decrement", command=decrease, width=10, bg="#ffb3b3").grid(row=0, column=1, padx=5)
tk.Button(root, text="Reset", command=reset, width=22, bg="#ccccff").pack(pady=10)
root.mainloop()
Информация по комментариям в разработке