Ep 3/7

Опубликовано: 09 Июль 2026
на канале: SE CS Academy
16
1

In this playlist, I will demonstrate how to build a simple typing speed counter using just Python
code :
import tkinter as tk

root = tk.Tk()
root.title("Typing Speed counter")
root.geometry("500x500") # size of window
root.resizable(True,True)

text = tk.Text(root)
text.pack()

status = tk.Label(root,text="Char: 0 | Word: 0 | Speed: 0")
status.pack()

def update_counter():
text_typed = text.get("1.0","end-1c")
words = len(text_typed.split())
char = len(text_typed)
status.configure(text = f"Characters : {char} | Words : {words}")

root.after(1000,update_counter)

update_counter()

root.mainloop() # closing of window