This script was made just for my purposes… see it
import tkinter as tk def text_square(event): text = t.get(0.0, tk.END) count = 0 for w in text.split(): count += 1 if count < 4: print(w, end=" ") else: print() count = 0 # print(text) root = tk.Tk() t = tk.Text(root) t.pack() t.bind("<Return>", text_square) root.mainloop()
Subscribe to the newsletter for updates
Tkinter templates
My youtube channel
Twitter: @pythonprogrammi - python_pygame