我愿意做这种事情。
from tkinter import * root=Tk() t1="Visit Us:" t2="www.something.com"
如果我可以分别配置t1和t2的字体描述符,那将很有帮助!
Button(root, text=t1+t2, command=Visit).pack() root.mainloop()
不,你不能做你想做的。对于字符串的不同部分,唯一支持不同字体的小部件是Canvas和Text小部件。
Canvas
Text