桌面应用程序开发中的Python [英] Python in Desktop Application Development

查看:97
本文介绍了桌面应用程序开发中的Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的公司正在改造IT基础架构和系统,因此我们正在最终确定用于开发新系统的技术。

My company is revamping the IT infrastructure and systems, so we are at the middle of finalizing the technology for developing the new system.

我们有两名候选人; Java& Python。

We have come to two candidates; Java & Python.

选择的主要标准是语言必须完整。从某种意义上说,它必须能够用于网络和桌面应用程序开发。 Java被证明是这一领域,具有许多优秀的Web框架(JSF,Hibernate等)和相对优秀的GUI库(SWT,Swing)。

The main criteria of the choice is the language must be complete; in a sense that it must be able to use for web & desktop applications development. Java is proven is this field, with many good web framework (JSF, Hibernate, etc) and relatively good GUI library (SWT, Swing).

但是,从我的亲身经历来看,Python看起来更美味,Python的开发效率很高,我可以用更少的时间做更多的事情(我只有使用Django进行Web开发的经验)。但是,对于桌面应用程序,我还没有找到任何与Swing集成在一起的出色的GUI库。

However, Python looks more delicious as from my personal experience, development in Python is efficient, I could do more with less time (I only have experience in web development with Django). However, as for the desktop application, I have yet find any good GUI library that comes integrated with the IDE as Swing.

如果可以的话,有人可以向我指出最好的GUI框架吗?

Can someone points me the best if possible GUI framework for desktop application for Python?

推荐答案

对于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.

这篇关于桌面应用程序开发中的Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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