python - Modifying a Part of Text on tk.Button -


i wonder if possible change weight of 1 word on tkinter button? result this:

[ yes, agree ]

i've tried using tags neither tk.button nor tk.button['text'] seem allow it.

thanks!

no, it's not possible. if want button rich text you'll have create own. or, create image has want, , use image standard button.

you can create own using text widget 1 character tall , few characters wide. then, can place bindings on button handle clicks, , change relief simulate button. unfortunately, won't have of platform-specific buttons.


Comments

Popular posts from this blog

ios - UITEXTFIELD InputView Uipicker not working in swift -

Hatching array of circles in AutoCAD using c# -