我的python程序需要GUI,wxPython还是PyQt4? [英] My python programs need a GUI, wxPython or PyQt4?

查看:79
本文介绍了我的python程序需要GUI,wxPython还是PyQt4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我已经达到了我的建筑管道工具实际上需要我公司其他人使用的价值。由于这个原因,我实际上需要考虑可用性,而且我已经得出了需要GUI的

结论。那么,我应该学习两个包中的哪一个,哪一个更容易学习?

提前致谢!


Daniel

So, I''ve reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I''ve come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!

Daniel

推荐答案

Daniel Jonsson写道:
Daniel Jonsson wrote:

所以,我已经达到了我的建筑管道工具实际上需要我公司其他人使用的价值。由于这个原因,我实际上需要考虑可用性,而且我已经得出了需要GUI的

结论。那么,我应该学习两个包中的哪一个,哪一个更容易学习?

提前致谢!


Daniel
So, I''ve reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I''ve come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!

Daniel



您可能还想考虑许可问题。我认为QT的许可证

比wx更具限制性。另外,您可能需要考虑

Tkinter。

You may also want to think about licensing issues. I think the license
for QT is more restrictive than wx. Also, you might want to consider
Tkinter.


Daniel Jonsson写道:
Daniel Jonsson wrote:

所以,我已经达到了我的建筑管道工具实际上需要我公司其他人使用的价值。由于这个原因,我实际上需要考虑可用性,而且我已经得出了需要GUI的

结论。那么,我应该学习两个包中的哪一个,哪一个更容易拿起?

提前致谢!
So, I''ve reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I''ve come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!



哇...你是否*试图*开始一场火焰战争? :)


无论如何,这里有几点要考虑。这绝不是详尽无遗的,而且我相信其他人会加入(和/或纠正)我说的话。

我最熟悉的Qt,所以我的评论将是这样的。


Qt4 *是* GPL,但是你只能免费使用它,如果软件你是

写作是GPL。因此,如果你的源代码没有问题,那么使用Qt就没有问题。 wxWindows本质上是LGPL,所以

可能更容易使用,具体取决于您需要多长时间来保存

源代码。


wxWindows在* nix上使用Gtk小部件。在*我的意见* Qt小部件看起来更好,但这只是我。


从我所看到的PyQt4 API ,它非常干净且易于使用。


您可以使用标准QtDesigner设计表单并使用py-将它们编译为
Python UIC。如果你想要b / b
,你也可以在运行时加载.ui文件。我不知道wxWindows中的表单设计工具,其他人

可以在那里添加输入。


使用QtDesigner创建表单非常容易。并且还很容易确保

他们仍然使用布局和垫片很好地布局和比例。


无论如何,这些是我的顶部的想法如果我想的更多的话,我会再次打电话。




j


-

Joshua Kugler

主管系统管理员 - 高级程序员
http://www.eeinternet.com

PGP密钥: http://pgp.mit.edu/ ?* ID 0xDB26D7CE


-

通过免费的Usenet发布来自 http://www.teranews.com 的帐户

Wow...are you *trying* to start a flamewar? :)

Anyway, here are a few points to think about. This is by no means
exhaustive, and I''m sure others will add to (and/or correct) what I say.
I''m most familiar with Qt, so my comments will be directed that way.

Qt4 *is* GPL, but you can only use it for free if the software you''re
writing is GPL. So, if there is no issue with you making your source code
public, there is no problem using Qt. wxWindows is essentially LGPL, so
might be easier to use, depending on how closely you need to hold your
source code.

wxWindows uses Gtk widgets on *nix. In *my opinion* the Qt widgets look
better, but that''s just me.

From what I''ve seen of the PyQt4 API, it''s very clean and easy to use.

You can design your forms using the standard QtDesigner and compile them to
Python by using py-uic. You can also load .ui files at run time if you
want. I have no idea of the form design facilities in wxWindows, others
can add their input there.

It''s very easy to create forms with QtDesigner. And also easy to make sure
they still nicely laid out and proportionate by using layouts and spacers.

Anyway, those are the thoughts off the top of my head, I''ll chime in again
if I think of more.

j

--
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ ?*ID 0xDB26D7CE

--
Posted via a free Usenet account from http://www.teranews.com


2007年1月23日下午4:01,Daniel Jonsson写道:
On Jan 23, 2007, at 4:01 PM, Daniel Jonsson wrote:

所以,我已经到了我的建筑管道工具实际上需要由其他pe使用.b $ b ople在我的公司。由于这个原因,我实际上需要考虑可用性,而且我已经得出了需要GUI的

结论。那么,我应该学习两个包中的哪一个,哪一个更容易学习?

提前致谢!


Daniel
So, I''ve reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I''ve come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!

Daniel



别忘了PyGTK( http://www.pygtk.org)和Tkinter!


你应该全力以赴,做出自己的决定,恕我直言。 />
我实际上是在为我的工作使用pyobjc,但如果我必须支持其他

环境,我会使用PyGTK。 (虽然我*在使用它的时候对PyQt很满意

(3))。

Don''t forget PyGTK (http://www.pygtk.org), and Tkinter!

You should really try them all out and make your own decision, IMHO.
I''m actually using pyobjc for my work, but if I had to support other
environments, I''d be using PyGTK. (Although I *was* happy with PyQt
(3) when I was using it).


这篇关于我的python程序需要GUI,wxPython还是PyQt4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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