转一下,备忘
主要是这里
http://sourceforge.net/projects/gtk-win
install GTK and Glade
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 )
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
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 )
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