gpt4 book ai didi

Python GUI 编程、许可和理解

转载 作者:太空狗 更新时间:2023-10-29 20:28:26 25 4
gpt4 key购买 nike

我最近一直在研究 python,我一直在对最好的 x 平台 UI 工具包进行大量研究。我真的不想要沉重的东西,因为我是一个孤独的开发者,从 C# 转换过来,而且我可能会在我的本地销售我的一些应用程序。

我尝试了 PyQt,我开始喜欢上它,尽管 PyGTK 似乎有点成熟。

就像我之前说的,我不喜欢沉重的原生外观,但请不要喜欢 Tk,我被困在 PyQt 的许可问题上,因为你可能无法销售编写的程序在里面。有人介绍了 Pyside,但据我所知,它不稳定且维护良好。

  • 我的问题是,我可以出售我的 PyQt 编写的应用程序吗
  • pyGTKPyQt 好吗,请给出理由
  • 是否有任何其他易于学习和实现的 x 平台以及我可以使用的适用于 python 的无许可问题的 UI 工具包

教育性回复将不胜感激

最佳答案

来自PyQt website :

Like Qt itself, Riverbank's software (PyQt5, PyQt4, PyQtChart, PyQtMobility, dip and QScintilla2) is provided under a number of licenses depending on how it is going to be used.

The free versions are licensed under the GNU General Public License. If your use of Riverbank's software is compatible with the GPL then you do not need to buy a commercial license.

If your use of Riverbank's software is not compatible with the GPL then you require a commercial license.

我对 GPL 条款的基本理解是,商业版本是可以的,但任何“使用”GPL 许可软件的软件也必须在 GPL 兼容许可下作为开源发布。 “使用”的确切含义可能需要律师:)


我从来没有很幸运地让 PyGTK 工作,但是我对简单的 GUI 和 LPGL 许可的 PySide 没有真正的问题。文档一般般,我不得不稍微引用一下 Qt C++ 文档,但总的来说它非常稳定,并且与 MatplotLib 集成得很好以进行绘图。

例如这些简单的 GUI 带有我使用 PySide 制作的实时绘图。第一个只需要大约十分钟的时间来手工编码,但是对于更复杂的 GUI,您也可以使用 QtDesigner。

Gui using PySide

GUI 2 using PySide

关于Python GUI 编程、许可和理解,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21798420/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com