Text Overline in Tkinter

I can apply a style to underlineeither the overstriketext in the widget Text.

Is it possible to do overline?

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()
+4
source share
1 answer

No, it's not possible to stroke.

+2
source

Source: https://habr.com/ru/post/1615899/


All Articles