I have searched without success for a way to format the text in a Tkinter OptionMenu List. Specifically, I want to use some subscripted letters. Something like:

from Tkinter import *

root = Tk()
types =
type = StringVar()
typewidget = OptionMenu(root, type, *types)

I need specifically the 'd' and 'oc' subscripted. I am aware that some characters are available in unicode (for example subscript 'o') but 'c' and 'd' are not.

5 Years
Discussion Span
Last Post by woooee

Maybe you would need to switch over to pySide (aka pyQT) or wx toolkits.

So there is no way to do this? Well I'm not going to re-write 2000 lines with a new toolkit at this point for one cosmetic issue. But it is frustrating that there are no unicode characters for some sub/superscripted letters.


AFAIK the Tkinter text widget is the only widget that will do sub/super-scripts. You would have to use a gif of the text or some other nasty work around to do it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.