7
我正在研究一个项目,需要我在Tkinter Label小部件中强调一些文本。我知道可以使用下划线方法,但我似乎只能根据参数来强调小部件的1个字符。即Tkinter Label小部件中的下划线文本?
p = Label(root, text=" Test Label", bg='blue', fg='white', underline=0)
change underline to 0, and it underlines the first character, 1 the second etc
我需要能够强调小部件中的所有文本,我相信这是可能的,但怎么做?
我使用Python 2.6在Windows 7
完美!谢谢! – 2010-09-07 17:24:28