3

I'm trying to get rid of the thick border showing up when I changed the optionmenu and submenu background and foreground color.

I did manage to get rid or modify the parent optionmenu border by using:

optmenu.configure(hilightthickness=0)

There's a reference here changing the background color of the submenu:

How to change menu background color of Tkinter's OptionMenu widget?

..but I can't seem to find a way to remove the outer border showing up on the submenu. Tried hilighthickness=0 but it's no good.

I'm using Windows 7 and Python 2.7.

Any ideas? thanks.

Community
  • 1
  • 1
Ron
  • 95
  • 1
  • 7
  • There was a similar question recently made that had a good answer, https://stackoverflow.com/a/62416450/10062180 – Gerry Jul 11 '20 at 23:51

1 Answers1

0

There should be a bd option, just do something like:

bd=0

Just add it when you are defining all the options for it.

Dan Alexander
  • 2,004
  • 6
  • 24
  • 34