While trying to make an entry frame I ran into a problem where I can't make border around ttk.OptionMenu in order to make it look similiar to ttk.Entry. (The two next to each other are in image)
Making OptionMenu
option = ttk.OptionMenu(bottom_container, self.have, 'ANY', 'ANY', '0', '1', style='vista.TMenubutton')
option.grid(column=1, row=2, sticky='we')
I tried using styles (want to still use vista/winnative look) and was able to make the optionmenu background white, but I couldn't find a way to fit in a border around it
this is the code i use for inspecting ttk widgets with a view to working out how to theme them:
and to put it simply without switching the theme to something like the clam theme there isn't any options in the widget to add a border (stupid I know)
i don't have the vista theme to test with, but with the XP theme i get:
and with the clam theme:
notice the addition of the border element?
and if you try to copy the layout of the clam theme optionmenu to another theme using:
the result is:
which no longer has options for actually setting the border. essentially the theme engine cannot properly handle layouts which have different elements to which it is expecting. so you will need to chose a theme which has widgets with all the elements you want to style.