python - 用 Pyside 做了一个 GUI,但是我后面还有一个 cmd 窗口?

标签 python qt user-interface cmd pyside

<分区>

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

我使用 QT Designer 和 Pyside 制作了一个 GUI 程序,它完全可以运行。唯一的问题是,每当我运行它时,我都会在后台看到一个 cmd.exe 窗口。这很烦人。有什么办法可以解决这个问题吗?

最佳答案

尝试将文件扩展名更改为 .pyw。双击 .pyw 将使用 pythonw.exe 而不是 python.exe。

关于python - 用 Pyside 做了一个 GUI,但是我后面还有一个 cmd 窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8222177/

相关文章:

user-interface - 进入 while 循环时 Tkinter 出现 GUI 问题

python - 如何识别 Python 运行在哪个操作系统上?

python - Scrapy 中间件顺序

java - PyCharm 无法连接到网关后面的远程(java.net.UnknownHostException)

linux - Q文件对话框 : is it possible to filter only executables (under Linux)?

qt - 弹性 QListBoxWidget

qt - 如何将项目添加到数组 qml?

c# - 在不先检查 InvokeRequired 的情况下更新 UI 时出现性能问题?

c# - 如何更改 Windows Phone 中 MenuFlyout 的外观?

python - 连接字节时出现类型错误