如何在 Windows 上运行的 PyQt 应用程序中隐藏控制台窗口? [英] How can I hide the console window in a PyQt app running on Windows?

查看:37
本文介绍了如何在 Windows 上运行的 PyQt 应用程序中隐藏控制台窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这当然有可能吗?我一直在寻找 PyQt 教程和文档,但找不到答案.可能我只需要用不同的方式表达我的搜索查询.

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.

感谢 PEZ 的回答 - 更多详细信息,包括在 Win32 上的 Python 编程第 20 章

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

推荐答案

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

I think you should be able to run your app with pythonw.exe.

这篇关于如何在 Windows 上运行的 PyQt 应用程序中隐藏控制台窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆