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

时间:2015-03-02 00:17:28

标签: 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
root.overrideredirect(True)

#  this will keep the window on top
root.attributes('-topmost', True)

我认为这可能是呼叫亭模式?现在,在我的应用程序中,我有两个窗口在不同时间打开,需要用户响应。使用上面的设置永远不会显示第二个窗口。我试着把它改成假......

root.attributes('-topmost', False)

......但仍然没有这样做。

如何在Kiosk模式下加载我的应用程序,但如果应用程序仍然可以让我的子窗口打开,那么用户可以访问该选项。

0 个答案:

没有答案
相关问题