Python Widget/GUI框架 [英] Python Widget/GUI framework

查看:108
本文介绍了Python Widget/GUI框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在python小部件上构建GUI的最佳框架是什么?

What is the best framework to use for building the GUI on a python widget?

我目前正在使用gnome 3,但希望它独立于桌面环境.

I'm currently using gnome 3, but would prefer it to be independent of the desktop environment.

推荐答案

我已经使用了以下3个工具包.

I have used the 3 following toolkits.

  • wxPython是一个流行的选择.它支持Windows,Mac和Linux,但要在其中一些平台上安装可能会有些棘手(这是我最近在64位MAC和Ubuntu上注意到的).它有很多不错的小部件,可以通过演示应用程序看到这些小部件,这些小部件可以单独下载.我建议您看看这个程序.我认为,即使wxFormBuilder似乎是一个很好的工具,它也缺少一个出色的表单设计器.我对Xrced不太满意,后者是另一个图形表单设计器,但您可能更喜欢这个.

  • wxPython is a popular choice. It supports Windows, Mac and Linux but may be tricky to install on some of these platforms (that's what i've recently noticed on 64 bits MAC and Ubuntu). It has a lot of nice widgets which can be seen with the demo app that can be downloaded separately. I do recommend to have a look to this app. In my opinion, it is missing a great form designer even if wxFormBuilder seems to be a good tool. I am less confortable with Xrced which is another graphical form designer but you may prefer this one.

PySide是Qt的python包装器.在我看来,这是一个非常专业的工具包.它也是跨平台的,并且具有非常好的图形表单设计器(QtDesigner).这是开源开发的最佳选择.如果您想制作一个商业应用程序,则必须购买一个许可证,在我看来,对于中小型项目来说这有点贵. (这就是为什么我最近不使用Qt的原因)

PySide is the python wrapper for Qt. It seems to me as a very professional toolkit. It is cross-platform as well and have a very good graphical form designer (QtDesigner). It is the best choice for open-source development. If you want to make a commercial app, you would have to buy a license which is in my opinion a bit expensive for small to medium size projects. (that's why I didn't use Qt recently)

TkInter包含在Python标准库中,并且也是跨平台的.我非常喜欢它,并且正在将其用于我的小应用程序.对于较大的项目,我认为它缺少小部件,文档和易于使用的图形设计器.如果您有一点时间来深入研究这个库,那可能不是问题.

TkInter is included in the Python standard lib and is also cross-platform. I like it very much and I am using it for my little apps. For bigger projects, i think that it is missing widgets, documentations and a easy-to-use graphical designer. If you have a little time to dive into this lib, it may not be a problem.

我希望对您有帮助

这篇关于Python Widget/GUI框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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