PyGTK与wxPython [英] PyGTK vs. wxPython

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

问题描述

大家好......


我认为wxPython比PyGTK要好得多。首先,PyGTK需要安装GTK运行时的
,而wxPython完全是Python'的
模块,因此它便于应用程序的分发。此外,PyGTK使用

特定的GTK控件或小部件,而wxPython使用应用程序运行平台的原生

控件。


我正在学习这两个,但步伐缓慢,所以我想知道关于这个主题的所有

评论。


我听说过Glade制作应用程序的图形布局,然后

将其导出为XML。然后,它连接到PyGTK。我看到的问题是

如果你想引用一个特定的无线电按钮的状态怎么样?b $ b radobutton'的组?这似乎很麻烦。


请发表关于每个库的优缺点的任何评论,并且

构建图形布局的正确方法(通过

Glade或手工代码生成XML)。谢谢。


Daniel

解决方案

2005-04-25,dcrespo< dc*****@gmail.com>写道:

大家好......

我认为wxPython比PyGTK要好得多。首先,PyGTK需要安装GTK运行时,而wxPython完全是Python的模块,




嗯? wxPythonGTK也需要GTK运行时:


ldd libwx_gtk2_core-2.5.so> / tmp / foo

linux-gate.so.1 => (0xffffe000)

libz.so.1 => /lib/libz.so.1(0x4028d000)

libdl.so.2 => /lib/libdl.so.2(0x4029e000)

libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0(0x402a1000)

libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0(0x40585000)

libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0(0x405fa000)

libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0(0x40616000)

[...]


如果你在其他一些工具包上运行wxPython ,那么你将需要工具包的运行时而不是GTK。


-

格兰特爱德华兹格兰特佑!佑!那些人看起来和Donnie完全一样

visi.com和Marie Osmond !!


Grant Edwards写道:

嗯? wxPythonGTK也需要GTK运行时:




他可能在谈论Windows,其中wx工具包使用本机

(或多或少......控制。


但是,在Windows上安装GTK运行时库是一键式的b
工作,有自动安装程序。


Hi all...

I think wxPython is much better than PyGTK. First of all, PyGTK needs
the GTK runtime installed, whereas wxPython is entirely Python''s
modules, so It facilitates the apps'' distribution. Also, PyGTK uses
specific controls or widgets of GTK, while wxPython uses native
controls of the platform where the app is running.

I''m learning both, but at a slow step, so I want to know all the
comments about this subject in this group.

I heard about Glade to make the graphic layout of the app and then
export it as XML. Then, it connects to PyGTK. The problem I see is that
What if you want to refer to a state of a specific radiobutton of a
radobutton''s group? It seems to be very troublesome.

Please, post any comments about the pros and cons of each library, and
the proper way to construct the graphic layout (generating XML through
Glade, or by hand-code). Thanks.

Daniel

解决方案

On 2005-04-25, dcrespo <dc*****@gmail.com> wrote:

Hi all...

I think wxPython is much better than PyGTK. First of all, PyGTK needs
the GTK runtime installed, whereas wxPython is entirely Python''s
modules,



Huh? wxPythonGTK requires GTK runtimes as well:


ldd libwx_gtk2_core-2.5.so> /tmp/foo
linux-gate.so.1 => (0xffffe000)
libz.so.1 => /lib/libz.so.1 (0x4028d000)
libdl.so.2 => /lib/libdl.so.2 (0x4029e000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x402a1000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x40585000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x405fa000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x40616000)
[...]

If you run wxPython on top of some other toolkit, then you''ll
need that toolkit''s runtimes instead of GTK.

--
Grant Edwards grante Yow! Yow! Those people
at look exactly like Donnie
visi.com and Marie Osmond!!


Grant Edwards wrote:

Huh? wxPythonGTK requires GTK runtimes as well:



He was probably talking about Windows, where wx toolkit uses native
(more or less...) controls.

But then, installing GTK runtime libraries on Windows is a one-click
job, there are automated installers for it.


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

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