简体   繁体   中英

GTK3 and Python3 on Windows?

Is there any way to launch a Python3 / GTK3 based application on a Windows machine? It seems that this is not that simple as with GTK2/Python2.

Thanks a lot, Thomas

据我所知, Windows仍然没有正式的 GTK3或GObject-Introspection库 ,因此没有python绑定。

I'm assuming you want the development kit. Windows version has indeed been missing for a long time, but there's some available now.

Going to official site and finding https://wiki.gnome.org/Projects/PyGObject , you can find a link to "Windows installers" which should lead to a rather massive all-in-one installer for Gtk3 and many related libraries for Python 3. You can load a current cpython from https://www.python.org/downloads/ and install that first.

For windows, there's also a lot of unofficial pre-built packages in http://www.lfd.uci.edu/~gohlke/pythonlibs/ . Cpython 3.4 at least seems to include a functional pip for installing wheels.

I've made some use of these for running some python and matplotlib code 64-bit windows and they work rather nicely with 64-bit python 3.4. You can test with eg http://gtk3-matplotlib-cookbook.readthedocs.org/en/latest/ to find backend settings and other tips.

I hope, i understand the question. You Need a actual runtime of gtk3 on Windows.

inofficial gtk3.14.13 64bit-Runtime, 32bit here not available, see: https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer

win32 and win64: experimental official runtime 3.6.4 in http://www.gtk.org/download/index.php is very Alpha or beta.

I hope this helps enough for gtk3.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM