我正在尝试用Python tkinter编写一个笔记本,我无法弄清楚如何在可编辑文本区域添加水平线以使其看起来像真正的教科书,因为我是新手,我知道该怎么做它在css中但也无法弄清楚如何将css嵌入到python中。任何帮助将不胜感激
from tkinter import *
root = Tk()
horborder_ = Frame(root, height=25, background='khaki')
horborder_.pack(expand='no', fill='x')
lineNum_ = Text(root, width=4, padx=3, border=0, background='khaki', state='disabled', wrap='none')
lineNum_.pack(side='left', fill='y')
textar_ = Text(root, wrap='word')
textar_.pack(expand='yes', fill='both')
root.mainloop()