Underline Text in Tkinter Label widget?

后端 未结 7 750
天命终不由人
天命终不由人 2020-12-20 12:30

I am working on a project that requires me to underline some text in a Tkinter Label widget. I know that the underline method can be used, but I can only seem to get it to u

7条回答
  •  臣服心动
    2020-12-20 13:23

    p = Label(root, text=" Test Label", bg='blue', fg='white', font = 'helvetica 8 underline')
    

    put your own font (i choose helvetica 8)

提交回复
热议问题