That won't work and regretable i don't see an easy solution. The main problem here is, that OptionMenu is a composite widget. It's a descendant of Menubutton (which ironically is marked as deprecated/obsolte in the tkinter source) and contains a menu-widget.
Afaik the image-option you are using is packed together with the label-text and won't "detach" through your layout-configuration attempts. The more sane approach should be to influence the indicator-widget/representation which you disabled with IndicatorOn=0
. But no luck there either, because i just can't figure out what the heck the indicator is...
Btw somehow it looks like an awful hack:
class OptionMenu(Menubutton):
"""OptionMenu which allows the user to select a value from a menu."""
def __init__(self, master, variable, value, *values, **kwargs):
...
#'command' is the only supported keyword <--- lol?! WTF?! why?
callback = kwargs.get('command')
if kwargs.has_key('command'):
del kwargs['command']
if kwargs:
raise TclError, 'unknown option -'+kwargs.keys()[0] # yeah sure! - unknown my a** 8-/
if you look at the source of tkinter and compare it to the original.
That's also the reason why you have to add a second line after the "initialization"
om.config(indictoron=0,compound='right',image=arrow,width=140)
In the genuine source you may find, that an initial hunch about the button being
some kind of a radiobutton, is not so far out of the field, but it doesn't help
(at least not me) to solve the tkinter issue. :-(
I'm sorry i couldn't be of any better use.... shame on me! :( But i'll try harder
the next time! ;-)
ttk.OptionMenu
? – Enrico