Underline Text in Tkinter Label widget?

后端 未结 7 749
天命终不由人
天命终不由人 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)

    0 讨论(0)
提交回复
热议问题