Python - 最适合这项工作的 GUI 库? [英] Python - Best GUI library for the job?

查看:25
本文介绍了Python - 最适合这项工作的 GUI 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 WxPython 并尝试过 Tk,但似乎两者都很好,我可能会将它们用于其他项目,但它们似乎都无法完成我想要的事情对于我当前的项目(这很好,他们擅长于自己的工作).

I've been using WxPython and I've tried Tk, but it seems that, while both are good and I'll likely use them for other projects, neither of those appear to be capable of accomplishing the things that I want for my current project (which is fine, they're good at what they do).

基本上我正在寻找的是能让我制作丰富的图形 GUI 的东西.我的具体目标是一个窗口,它将绘制位图按钮,自动调整父窗口的大小以适应它们,并可能使用幻灯片效果为调整大小设置动画并使按钮淡入.也能够拥有我自己的窗口边框样式而不是内置对我来说很重要.

Basically what I'm looking for is something that will allow me to make rich graphical GUIs. My specific goal is a window that will draw bitmap buttons, resize the parent window automatically to fit them, and possibly animate the resize with a slide effect and have the buttons fade in. Also being able to have my own window border style instead of the inbuilt one is important to me.

这个特定的项目将仅适用于 Windows,因此在这种情况下非可移植的库很好,但可移植的库也很好.

This particular project will be Windows only, so non-portable libraries are fine in this case, though portable ones would be great too.

如果我错过了如何在 WxPython 或 Tk 中完成此操作,我会全神贯注.

If I missed how this can be done in either WxPython or Tk, I'm all ears.

推荐答案

PySide: http://www.pyside.org/

PySide 项目提供LGPL 许可的 Python 绑定,用于Qt 跨平台应用程序和 UI框架.PySide Qt 绑定允许免费开源和专有软件开发,最终旨在支持所有平台Qt 本身.

The PySide project provides LGPL-licensed Python bindings for the Qt cross-platform application and UI framework. PySide Qt bindings allow both free open source and proprietary software development and ultimately aim to support all of the platforms as Qt itself.

PySide 的 Windows 版本相当新,可能被视为测试版.PySide 是与 PyQt 兼容的 API.

The Windows version of PySide is quite new and may be considered as a beta version. PySide is API compatible with PyQt.

这篇关于Python - 最适合这项工作的 GUI 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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