4

I can apply an underline or overstrike style to text in Text widget.

Is it possible to do an 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()
mcu
  • 3,302
  • 8
  • 38
  • 64
  • 1
    Well, from http://www.tutorialspoint.com/python/tk_fonts.htm, it seems that only options are: `family, size, weight, slant, underline, overstrike`. – Berci Nov 14 '15 at 18:45

1 Answers1

2

No, it is not possible to do an overline.

Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685