问题描述
我正在开发一个 tkinter 应用程序,我刚刚更新到最新版本的 python(python 3.9.5),而 tkinter 使用的是我的 mac 的默认主题,这与我的设计不符。
我想要这个(浅色主题):
但我得到的是(黑暗主题):
是否可以将主题更改为 light
或查看当前的 mac 主题?
我的代码:
from tkinter import *
class Snipper:
def __init__(self):
self.root = Tk()
self.root.title("snipper")
self.build()
# bring app to front after start
self.root.lift()
self.root.attributes('-topmost',True)
self.root.after_idle(self.root.attributes,'-topmost',False)
self.root.minsize(1000,600)
self.root.mainloop()
s = Snipper()
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)