Using Python Tkinter to display the number of lines in the Text text box
Recently, I used tkinter to create a text editor. After a long time, I finally studied the effect of displaying the number of text lines like pycharm, as shown in the figure:
Put the source code directly, and then explain it in detail
from tkinter import *
from tkinter import scrolledtext
from threading import Thread, RLock
class Main(Tk): ...
Posted on Tue, 21 Sep 2021 19:46:55 -0400 by Twister1004