Python:如何在没有工具栏的情况下将应用程序加载到全屏?

Python:如何在没有工具栏的情况下将应用程序加载到全屏?,python,tkinter,Python,Tkinter,我在python应用程序中使用了以下代码,以便在没有任何顶部工具栏的情况下全屏加载它 # uncomment these 3 lines to load it full screen no menu bar root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(), root.winfo_screenheight())) root.wm_state('normal') # normal, iconic, withdrawn roo

我在python应用程序中使用了以下代码,以便在没有任何顶部工具栏的情况下全屏加载它

#  uncomment these 3 lines to load it full screen no menu bar
root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(), root.winfo_screenheight()))
root.wm_state('normal') #  normal, iconic, withdrawn
root.overrideredirect(True)

#  this will keep the window on top
root.attributes('-topmost', True)
我想这可能是电话亭模式?现在在我的应用程序中,有两个窗口在不同的时间打开,需要用户响应。使用上述设置,第二个窗口将永远不可见。我试着把这个改成假的

root.attributes('-topmost', False)
。。。但这仍然不行


如何在kiosk模式下加载我的应用程序,但如果应用程序打开,我的子窗口仍在顶部打开,以便用户可以访问该选项。

如果您使用的是
tkinter
,则可以在第二个窗口上调用
w.lift()
,此时会生成一个带有退出按钮的窗口,该按钮会调用tkMessageBox.askyesno。第二个窗口是tkColorChooser窗口。我来看看电梯,看它能不能用。谢谢。