how to justify text in label in tkinter in python Need justify in tkinter

后端 未结 3 1552
闹比i
闹比i 2021-01-11 17:04

In Tkinter in Python: I have a table with a different label. How can I justify the text that is in the label? Because It is a table and the texts in different labels come to

3条回答
  •  清酒与你
    2021-01-11 17:15

    To add on to what Bryan said, LEFT is the constant you are looking for to correctly format your wrapped text. You can also justify to the RIGHT or CENTER (the default).

    a=Label(root,text='Hello World!', anchor="e", justify=LEFT)
    

提交回复
热议问题