且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

桌面应用程序开发中的Python

更新时间:2023-11-20 16:25:10

对于Python GUI,有3个主要选项:

For Python GUI, there are 3 main options:

  • wxPython
  • PyQt
  • PySide

(PySide是

要构建界面,您可以使用 wxGlade (用于wx)和打包的 QtDesigner (用于PyQt / PySide)(两者都可以转换 .ui 文件到 .py

For building the interface, you can use wxGlade for wx, and the packaged QtDesigner for PyQt/PySide (Which both can convert the .ui files to .py

所有3个都使用本机OS窗口小部件,因此看起来就像在家里一样。

All 3 use native OS widgets, so will look right at home.

尽管有更多的wx经验,但我实际上更喜欢PyQt,因为我发现使用它非常容易。

Despite having more experience in wx, I actually prefer PyQt, as I find it's a lot easir to work with.

对于用于开发Python GUI应用程序的集成IDE,没有(完整的)完整应用程序,但是,我个人使用 PyDev Eclipse 中的a>,它可以处理打开 .ui 为您保存的QtDesigner文件中的文件,运行该工具以生成 .py 文件,它将完美无缺地工作。

For an integrated IDE for developing Python GUI apps, there aren't any (afaik) complete apps, however, I personally use PyDev in Eclipse, which can handle opening .ui files in QtDesigner for you, which you'd save, run the tool to make a .py file, and it'll work pretty much flawlessly.