简体   繁体   English

如何在没有 python 控制台的情况下运行 tkinter 应用程序

[英]How to run a tkinter application without python console

我是初学者,我不知道如何在没有 python 控制台的情况下运行 tkinter 窗口,我尝试通过使用 .pyw 扩展名保存文件,但它不会打开任何东西,如果有人告诉如何在几秒钟后关闭终端,那就太好了开户申请

If you are looking to convert .py to .exe then check this post about it https://pythonprogramming.net/converting-tkinter-to-exe-with-cx-freeze/如果您想将 .py 转换为 .exe,请查看这篇关于它的帖子https://pythonprogramming.net/converting-tkinter-to-exe-with-cx-freeze/

It should run if you open the .exe file.如果您打开 .exe 文件,它应该会运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM