简体   繁体   中英

How can I hide the console window in a PyQt app running on Windows?

Surely this is possible? I have been hunting through PyQt tutorials and documentation but cannot find the answer to it. Probably I just need to phrase my search query differently.

[Edit]

Thanks PEZ for the answer - more details including use of the .pyw extension in Python Programming on Win32 chapter 20

我认为你应该能够使用pythonw.exe运行你的应用程序。

An easy way to do this is to give your script a .pyw extension instead of the usual .py.

This has the same effect as PEZ's answer (runs the script using pythonw.exe).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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