How can I match background colors for a Frame in a Notebook for ttk/Tkinter on a Mac?

↘锁芯ラ 提交于 2019-12-05 17:37:38
Jeff M.

I ran into the 'systemWindowBody' problem and just checked the OS using sys.platform and hardcoded the color for OSX only.

If you have a large amount of widgets, you could use a specific theme for OSX. (This was a good tkinter theme answer I found: Change color of "tab header" in ttk.Notebook)

I know this may not be ideal, but it will at least make sure you don't mess up the look on other platforms.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!