DEV Community

Cover image for Make a Clicking App in Tkinter and Python
MOOICT
MOOICT

Posted on

2

Make a Clicking App in Tkinter and Python

HI Lets make a simple Clicking App using Python and Tkinter. I am starting to learn more about Python and the more I learn the more interesting its becoming. To start I want to follow the same way I have learned all the .Net programs I have done before and I want to make small tutorials which will help others learn the same way I have. So here is the small Clicking app I have made using tkinter and Python. I have done a video tutorial of this on youtube if you want to check it out there.

YouTube Video Tutorial -

Source Code is here -

from tkinter import *
 
root = Tk()
root.geometry("300x300")
root.title("MOO ICT Button Clicker")
 
number = 0
 
def ClickButton():
    global number
    number += 1
    ShowInfo["text"] = "You Clicked " + str(number) + " times."
 
ClickingButton = Button(root,text="Click Me!", padx=50, pady=50, bg="gold", font=("Arial, 22"), command=ClickButton)
ShowInfo = Label(root, text="message", font=("Arial, 20"), fg="purple", pady=20)
 
ClickingButton.pack()
ShowInfo.pack()
 
root.mainloop()
Enter fullscreen mode Exit fullscreen mode

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay