import  tkinter as tk

counter = 0

def  counter_label(label):
    def count():
         global  counter
         counter+=1
         label.config(text=str(counter))
         label.after(1000,count)
    count()

root = tk.Tk()

root.title("Counting The Clicks")

label = tk.Label(root, fg="green")
label.pack()
counter_label(label)

btn = tk.Button(root, text='STOP', width=25, command= root.destroy).pack()

root.mainloop()


81031cbf5a53e66589f346db24405975e2683561
<mask token>


def counter_label(label):

    def count():
        global counter
        counter += 1
        label.config(text=str(counter))
        label.after(1000, count)
    count()


<mask token>

<mask token>


def counter_label(label):

    def count():
        global counter
        counter += 1
        label.config(text=str(counter))
        label.after(1000, count)
    count()


<mask token>
root.title('Counting The Clicks')
<mask token>
label.pack()
counter_label(label)
<mask token>
root.mainloop()

<mask token>
counter = 0


def counter_label(label):

    def count():
        global counter
        counter += 1
        label.config(text=str(counter))
        label.after(1000, count)
    count()


root = tk.Tk()
root.title('Counting The Clicks')
label = tk.Label(root, fg='green')
label.pack()
counter_label(label)
btn = tk.Button(root, text='STOP', width=25, command=root.destroy).pack()
root.mainloop()

import tkinter as tk
counter = 0


def counter_label(label):

    def count():
        global counter
        counter += 1
        label.config(text=str(counter))
        label.after(1000, count)
    count()


root = tk.Tk()
root.title('Counting The Clicks')
label = tk.Label(root, fg='green')
label.pack()
counter_label(label)
btn = tk.Button(root, text='STOP', width=25, command=root.destroy).pack()
root.mainloop()

import  tkinter as tk

counter = 0

def  counter_label(label):
    def count():
         global  counter
         counter+=1
         label.config(text=str(counter))
         label.after(1000,count)
    count()

root = tk.Tk()

root.title("Counting The Clicks")

label = tk.Label(root, fg="green")
label.pack()
counter_label(label)

btn = tk.Button(root, text='STOP', width=25, command= root.destroy).pack()

root.mainloop()

