且构网

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

PyQt,Qt,Windows和Linux

更新时间:2021-09-29 03:08:53

Vamsi Mudrageda写道:
Vamsi Mudrageda wrote:
我是Python的新手,在尝试和使用wxPython之后,我找到了
它缺乏易于阅读的文档,加载速度和GUI响应时间。

所以我正在寻找另一个跨平台的GUI工具包对于Python,我倾向于PyQt(PyGTK看起来有点沉闷
比较)。不幸的是,虽然TrollTech说Qt是跨平台的,但它的许可策略让我有些困惑。所以希望有人可以提供帮助......

目的:使用PyQt在我的Linux上开发/编写一个供个人使用的程序。能够在Windows上运行它。

问题:
1)这样做是否合法?


是。

2)我是否需要从TrollTech购买许可证?


是,或者来自Trolltech的许可经销商之一。我相信,你可以继续以最便宜的方式购买Blackadder,个人

版本,来自theKompany.com:它附带个人使用许可证

用于Linux和Windows的PyQt和Qt(我也是_think_ mac,但我不知道
知道这一点)。我相信它目前花费美国
I am kind of new to Python, and after trying and using wxPython, I found
it kind of lacking in easy-to-read documentation, speed at loading, and
GUI response-time.

So I am looking for an another GUI toolkit that is cross-platform for
Python, and am leaning toward PyQt (PyGTK is kind of dull looking in
comparison). Unfortunately, although TrollTech says Qt is
cross-platform, its license strategy has me a bit confused. So here is
to hoping someone can help...

Objective:
Develop/Write a program for personal use on my Linux using PyQt. Be
able to also run it on Windows.

Questions:
1) Is it legally possible to do that?
Yes.
2) Do I need to buy a license from TrollTech?
Yes, or from one of Trolltech''s licensed resellers of licenses. The
cheapest way you can proceed, I believe, is to buy Blackadder, personal
edition, from theKompany.com: it comes with personal-use licenses of
PyQt and Qt for both Linux and Windows (I _think_ mac, too, but I don''t
know about that). I believe it currently costs US


70。

3)我可以在Linux上为我的Windows创建一个.exe文件并将其复制过来吗?


对于像py2exe和McMillan这样的工具来说,这是一个问题,安装人员;这次是

,我不相信他们支持交叉打包

功能。但是,你肯定_can_用_ / $
distutils包装,例如进入.zip,然后在Windows上复制并安装该软件包

;这可能不是很顺利,但应该可以正常工作。

(我想完全在Linux上开发程序,但为其他平台制作可执行文件)。
70 .
3) Can I create a .exe file for my windows on my Linux and copy it over?
That''s an issue for such tools as py2exe and McMillan''s "installer"; at
this time, I do not believe they support that "cross-packaging"
functionality. However, you surely _can_ package things up with the
distutils, e.g. into a .zip, and copy over and install that package
on Windows; that may not be quite as smooth but it should work fine.
(I would like to develop the program entirely on Linux, but make
executables for other platforms).




在这种方法中,我建议你完全在Linux上开发,但是其他平台首先要单独安装Python并且需要

扩展,然后通过解压缩.zip

并运行python setup.py install来安装你的特定程序。 - 我认为不是太糟糕了。

Alex



In the approach I''d suggest you WOULD develop entirely on Linux, but
the other platforms would first separately install Python and needed
extensions, then install your specific program by unpacking the .zip
and running "python setup.py install" -- not TOO bad, I think.
Alex


2003年11月2日星期日下午6:52,Vamsi Mudrageda写道:
On Sunday 02 November 2003 6:52 pm, Vamsi Mudrageda wrote:
我是Python的新手,在尝试和使用wxPython之后,我发现它有点缺乏易于阅读的文档,加载速度快,并且
GUI响应时间。

所以我正在寻找另一个用于Python的跨平台的GUI工具包,我倾向于PyQt(PyGTK看起来有点沉闷/>比较)。不幸的是,虽然TrollTech说Qt是跨平台的,但它的许可策略让我有些困惑。所以希望有人可以提供帮助......

目的:使用PyQt在我的Linux上开发/编写一个供个人使用的程序。能够在Windows上运行它。

问题:
1)这样做是否合法?


是。

2)我是否需要从TrollTech购买许可证?


是 - 以及PyQt的许可证。

3)我可以在Linux上为我的Windows创建一个.exe文件并将其复制过来吗? />(我想完全在Linux上开发程序,但为其他平台制作
可执行文件。)
I am kind of new to Python, and after trying and using wxPython, I found
it kind of lacking in easy-to-read documentation, speed at loading, and
GUI response-time.

So I am looking for an another GUI toolkit that is cross-platform for
Python, and am leaning toward PyQt (PyGTK is kind of dull looking in
comparison). Unfortunately, although TrollTech says Qt is
cross-platform, its license strategy has me a bit confused. So here is
to hoping someone can help...

Objective:
Develop/Write a program for personal use on my Linux using PyQt. Be
able to also run it on Windows.

Questions:
1) Is it legally possible to do that?
Yes.
2) Do I need to buy a license from TrollTech?
Yes - and a license for PyQt.
3) Can I create a .exe file for my windows on my Linux and copy it over?
(I would like to develop the program entirely on Linux, but make
executables for other platforms).




这是不同的功能提供包装套餐。


Phil



That''s a function of the different packaging packages available.

Phil