我是在python中使用tkinter时在根窗口之上设置了很多其他窗口时遇到的这个问题,后来发现是因为一个程序中只能存在一个根窗口,即只能存在一个Tk(),其他的窗口只能以顶层窗口(Toplevel())的形式存在
把你的非根窗口定义成这样即可
ytm = tkinter.Toplevel() # 创建Tk对象
相关文章
- 10-15Table 'jiang.hibernate_sequence' doesn't exist
- 10-15discuz之——Table 'uc.uc_pms' doesn't exist,uc_pms不存在解决
- 10-15ERROR 1176 (42000): Key 'XXX' doesn't exist in table 'XXX'报错处理
- 10-15django.db.utils.ProgrammingError: (1146, “Table ‘xxx’ doesn’t exist”) 解决方法
- 10-15Error: Error occured while starting App. Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity
- 10-15为什么实数系里不存在最小正数?(Why the smallest positive real number doesn't exist in the real number system ?)
- 10-15django.db.utils.ProgrammingError: (1146, u"Table'' xxx doesn't exist")解决办法
- 10-15使用jpa配置update无法自动创建表,Table ‘xxx‘ doesn‘t exist
- 10-15org.openqa.selenium.WebDriverException: unknown error: DevToolsActivePort file doesn't exist
- 10-15git拉取代码报错:No tracked branch configured for branch master or the branch doesn‘t exist.