Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python pygtk windows 7 64 bit

I have been working with pygtk on linux for some time.I just want to make my app more distributable. Now I have used pygtk for 32 bit, but now I'd like to use pygtk for 64bit using pygtk 64bit. I have downloaded the all in one installer. I have changed my path as gtk would want and run the "pkg-config --cflags gtk+-2.0" command then ran the gtk-demo command and it did give me a demo and that works perfectly! Just I am missing someting because there in still no module named 'gtk' in my python gtk 64 bit.

I want to make the 64 bit version of gtk work on windows and when I get a fix I want to post on Youtube on how to make it work for others.

Thank you, I hope someone can help cause the documentation is lacking on this part.

like image 391
LUser Avatar asked Jan 28 '13 17:01

LUser


1 Answers

Ok for those that are searching for a GUI Python lib to be used in Windows 64 bit here it is!

1) Install from python.org the python 64bit, If you already have python installed on your system, you wont need to worry about this. http://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi

2)Add to your PATH in the advanced settings/environment variables ;C:\python27

3)Then download the all in one installer from GTK+ http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip

4)create a folder that is in c:\opt\gtk # it doesn't really matter where you'll just have to add it to PATH. unzip the folder and copy all the files to the the file created above. then, set your PATH to the file created E.G ;C:\opt\gtk\bin

You can test it now in cmd by typing: "gtk-demo"

5)Now you still have to get the libraries gtk,PyCairo,goobject http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygtk

py2cairo-1.10.0.win-amd64-py2.7.‌exe

pygobject-2.28.6.win-amd64-py2.7.‌exe

pygtk-2.22.0.win-amd64-py2.7.‌exe

I hope it helps. I saw a file "py2cairo-1.10.0.win-amd64-py2.7.‌exe" I am not certain if this is needed I am currently testing my applications. Now I just need to find gtksourceview2/3 for win7 64bit. Good Luck! ;)

like image 104
LUser Avatar answered Sep 21 '22 06:09

LUser