PyGTK还是wXPython? [英] PyGTK or wXPython?

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

问题描述

我刚刚开始使用Python,但我的主要目标是使用一些用户界面(GUI)提供

应用程序。


可以有人请指出我是否应该使用

wxPython(我假设使用wxGlade)或PyGTK(我假设使用Glade)?


我'' d更喜欢开源(不一定是GPL)工具。


Rod

解决方案

Rod W写道:

我刚刚开始使用Python,但我的主要目标是为应用程序提供一些用户界面(GUI)。

可以有人指出我是否应该使用
wxPython(我假设是wxGlade)还是PyGTK(我假设使用Glade)?

我更喜欢开源(不一定) GPL虽然)工具。

Rod




wxWidgets和GTK网站都有一些很好的比较表

和/或为什么我应该使用这个平台页。通过搜索PyGTK wxPython比较,可以在网上找到许多评论和文章

。或者

Python GUI工具包。


无论如何,PyGTK和wxPython之间的主要区别在于GUI的类型

在Windows上生成的。 PyGTK使用Windows移植GTK并且具有自己的外观和感觉(类似于Gnome,我可以说)。 wxPython,就像

wxWidgets一样,使用原生的MFC小部件,并且具有与任何其他MFC应用程序相同的外观和感觉(不受任何其他本机Windows应用程序的影响)。 />
在Linux上,PyGTK和wxPython是等价的,因为两者都使用GTK来渲染GUI。 (我不使用/编程/拥有任何McOS系统,所以我不能

告诉你关于Apple平台的任何信息)。


除此之外,wxPython(经常被告知更完整,

比GTK / PyGTK更好地记录并得到更好的支持。


HTH

-----------------------------------

Alessandro Bottoni


> (我不使用/编程/拥有任何McOS系统,所以我不能

告诉你关于Apple平台的任何信息。)




WxPython _can_给你一个原生的Mac外观和感觉,如果你是

愿意考虑某些问题(例如菜单栏不是

绑在窗户上,没有MDI,没有多窗格等)。这是afaik _not_

自动。


PyGTK使用X.有可用的窗口管理器试图模仿

Aqua" ;看看,但是没有办法将菜单栏从

窗口等分开......


如果你愿意GPL你自己的应用程序,PyQt是另一个

选项。


此致,


Wolfgang Keller


>除此之外,wxPython(和wxWidgets)经常被告知更完整,

比GTK / PyGTK更好地记录并得到更好的支持。




wxPython经常被告知要更多记录吗?由谁?


几个月前我想为Python选择一个漂亮的GUI(Tkinter

是不可能的)。我选择PyGTK有一个原因 - 它比wxPython更好,

记录得好。


我试图用wxPython编写程序而且我总是结束

在wxPython的文档中查找一些细节数小时。我认为

wxPython有更多的小部件(因此可以说它更完整了),但只有当这些额外的小部件是
需要
。它还有另一个优于PyGTK的优势 - 原生外观和

的感觉。在wxPython中编写一个程序,它将在它将运行的

系统上本地查看。但是与PyGTK的文档相比,wxPython的文档只是丑陋的b $ b。 (好吧 - 今年六月是这样的。

今年。)


I''m just starting out on Python but my primary goal is to provide
applications with some user interface (GUI).

Can someone point me to a good comparison of whether I should use
wxPython (with wxGlade I assume) or PyGTK (with Glade I assume)?

I''d prefer open source (not necessarily GPL though) tools.

Rod

解决方案

Rod W wrote:

I''m just starting out on Python but my primary goal is to provide
applications with some user interface (GUI).

Can someone point me to a good comparison of whether I should use
wxPython (with wxGlade I assume) or PyGTK (with Glade I assume)?

I''d prefer open source (not necessarily GPL though) tools.

Rod



Both the wxWidgets and the GTK web sites have some good comparison sheet
and/or a "why I should use this platform" page. Many reviews and articles
can be found on the web by searching for "PyGTK wxPython comparison" or
"Python GUI toolkits".

Anyway, the main difference between PyGTK and wxPython is the type of GUI
that is generated on Windows. PyGTK uses the Windows porting of GTK and has
its own Look&Feel (similar to Gnome, I could say). wxPython, like
wxWidgets, uses the native MFC widgets and have the same Look&Feel of any
other MFC application (indistiguishable from any other native Windows app).
On Linux, PyGTK and wxPython are equivalent because both use GTK for
rendering the GUI. (I do not use/program/own any McOS system, so I cannot
tell you anything about the Apple Platform).

Beside this, wxPython (and wxWidgets) is often told to be more complete,
better documented and better supported than GTK/PyGTK.

HTH
-----------------------------------
Alessandro Bottoni


> (I do not use/program/own any McOS system, so I cannot

tell you anything about the Apple Platform).



WxPython _can_ give you a native Mac "look and feel", if you are
willing to take into account certain issues (such as e.g. menu bars not
tied to windows, no MDI, no multi-pane etc.). It is afaik _not_
automatic.

PyGTK uses X. There are window managers available which try to emulate
an Aqua "look", but there''s afaik no way to detach the menu bar from
the window etc...

If you are willing to GPL your own applications, PyQt is another
option.

Sincerely,

Wolfgang Keller


> Beside this, wxPython (and wxWidgets) is often told to be more complete,

better documented and better supported than GTK/PyGTK.



Is wxPython often told to be more documented? By who?

Several months ago I wanted to choose a nice GUI for Python (Tkinter
was out of question). I choosed PyGTK for one reason - it was much,
much better documented than wxPython.

I have tried to write programs using wxPython and I have always ended
looking for some details in wxPython''s docs for hours. I think that
wxPython has more widgets (and therefore one can say it''s more
complete) - but it''s an advantage only when these extra widgets are
needed. It has also another advantage over PyGTK - the native look and
feel. Write a program in wxPython and it will look natively on the
system it will be run. But the documentation of wxPython is just ugly
in comparison to the documentation of PyGTK. (Well - it was so in June
this year.)


这篇关于PyGTK还是wXPython?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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