【问题标题】:GTK3 and Python3 on Windows?Windows 上的 GTK3 和 Python3?
【发布时间】:2015-07-22 00:58:08
【问题描述】:

有什么方法可以在 Windows 机器上启动基于 Python3 / GTK3 的应用程序?看来这不像GTK2/Python2那么简单。

非常感谢, 托马斯

【问题讨论】:

标签: python windows python-3.x gtk3


【解决方案1】:

我希望,我明白这个问题。您需要在 Windows 上实际运行 gtk3。

非官方 gtk3.14.13 64bit-Runtime, 32bit here not available, 看: https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer

win32 和 win64:http://www.gtk.org/download/index.php 中的实验性官方运行时 3.6.4 非常 Alpha 或 beta。

我希望这对 gtk3 有足够的帮助。

【讨论】:

    【解决方案2】:

    据我所知,还有no official GTK3 or GObject-Introspection libraries for Windows,所以没有python绑定。

    【讨论】:

      【解决方案3】:

      我假设您想要开发工具包。 Windows 版本确实缺了很长时间,但现在有一些可用。

      转到官方网站并找到https://wiki.gnome.org/Projects/PyGObject,您可以找到“Windows 安装程序”的链接,这应该会导致一个相当庞大的 Gtk3 一体化安装程序和 Python 3 的许多相关库。您可以加载一个来自https://www.python.org/downloads/ 的当前 cpython 并首先安装它。

      对于windows,http://www.lfd.uci.edu/~gohlke/pythonlibs/也有很多非官方的预建包。 Cpython 3.4 至少似乎包含一个用于安装轮子的功能 pip。

      我已经使用这些来运行一些 python 和 matplotlib 代码 64 位窗口,它们与 64 位 python 3.4 配合得很好。您可以使用例如测试http://gtk3-matplotlib-cookbook.readthedocs.org/en/latest/ 查找后端设置和其他提示。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2023-04-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-08-30
        • 2017-10-18
        相关资源
        最近更新 更多