Windows下安装GTK&PyGTK

转一下,备忘

主要是这里

http://sourceforge.net/projects/gtk-win

http://glade.gnome.org/

 install GTK and Glade

Postby naib on Sat May 16, 2009 7:29 am

Hi,

What you need to install and use GTK and python on windows are

1) GTK (for windows)
http://sourceforge.net/project/showfile ... p_id=71914
You will want the GTK+ Runtime Environment (V 2.16 atm)
You may also want: GTK+ Themes Installer (2008-10-22)

2) py{GTK,GObject,Cairo}
pyGTK: http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk
present version for windows is v2.12 : http://ftp.gnome.org/pub/GNOME/binaries ... -py2.6.exe

pyGObject: http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject
present version for windows is: v2.14: http://ftp.gnome.org/pub/GNOME/binaries ... -py2.6.exe

pyCairo: http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo
present version for windows is: v1.4.12: http://ftp.gnome.org/pub/GNOME/binaries ... -py2.6.exe

py{GTK,GObject,Cairo} for windows is lagging (by at least two major versions) w.r.t. linux because the pygtk team are having issues building it for windows (its near the top of their todo list tho and they /really/ want pygtk to support all features of 2.16 very soon!!!)

But the best thing abt gtk is its very backwards compatible (does mean alot of cruft builds up in the API, but that is what GTK-3 is all abt :D)


GLADE3 can be downloaded from : http://www.davidtavarez.com/winglade3/ (nice windows installer)
Thing is GLADE is upto v3.6.x for linux while for windows it is at v3.4.x - again issues with ppl providing pre-build exe's.
GLADE/GTK/pyGTK are moving away from pure GLADE files in favour of gtkBuilder files (they are almost identical). GLADE-3.4.x can only save as GLADE, GLADE-2.6.x can save as GLADE and gtkBuilder.
There is a nice py script that will convert a glade file to a gtkbuilder file

I would recomend you do yr GUI against gtkbuilder - it is subtly different but nicer imo
http://www.micahcarrick.com/05-30-2008/ ... e-faq.html

转载于:https://www.cnblogs.com/brainmix/archive/2010/12/03/1895621.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值