Python Tkinter中的上划线文本

Python Tkinter中的上划线文本,python,tkinter,text-styling,text-widget,Python,Tkinter,Text Styling,Text Widget,我可以对text小部件中的文本应用underline或overstrike样式 有可能做一个上划线吗 import tkinter as tk root = tk.Tk() text = tk.Text(root) text.pack(padx=4,pady=4,fill=tk.BOTH,expand=tk.YES) text.tag_configure('underline', underline=True) text.tag_configure('overstrike', overst

我可以对
text
小部件中的文本应用
underline
overstrike
样式

有可能做一个上划线吗

import tkinter as tk

root = tk.Tk()

text = tk.Text(root)
text.pack(padx=4,pady=4,fill=tk.BOTH,expand=tk.YES)

text.tag_configure('underline', underline=True)
text.tag_configure('overstrike', overstrike=True)

text.insert(tk.END, 'Underline text.\n','underline')
text.insert(tk.END, 'Overstrike text.\n','overstrike')

root.mainloop()

不,不可能做上划线。

好吧,从中看,似乎只有以下选项:
系列、尺寸、重量、倾斜、下划线、上划线