简体   繁体   English

python pygir-ctypes和gi.repository之间的区别

[英]Difference between python pygir-ctypes and gi.repository

I don't understand the difference and requirements of 2 python gtk3 packages. 我不了解2个python gtk3软件包的区别和要求。

one is the activestate pygir-ctypes package installed by pypm and the other one is the standard linux (I use Ubuntu) python gobject-introspection . 一个是pypm安装的activestate pygir-ctypes软件包,另一个是标准linux(我使用Ubuntu)python gobject-introspection

The documentation on gobject-introspection at https://python-gtk-3-tutorial.readthedocs.org/en/latest/install.html is pretty good if you run linux based OS, but on Windows the alternative seems to be activestate's pygir-ctypes implementations, but documentation is limited. 如果您运行的是基于Linux的OS,则有关https://python-gtk-3-tutorial.readthedocs.org/en/latest/install.html上gobject-introspection的文档非常不错,但是在Windows上,替代方法似乎是activestate的pygir -ctypes实现,但文档有限。

I have a small GUI which uses GTK3 python gobject-introspection, starting with 我有一个使用GTK3 python gobject-introspection的小GUI,从

from gi.repository import Gtk

the pygir-ctypes starts with pygir-ctypes以

from gir import Gtk

My assumption is at the moment it is the same but the packages have different requirements in regard to its installation. 我的假设是目前相同,但软件包在安装方面有不同的要求。 On Windows there are several comments on the web around only limited support for Python GTK3 (via gobject-introspection) support and nothing is really usable at this moment, but this pygir-ctypes looks promising. 在Windows上,网络上有几条评论,仅对Python GTK3的支持有限(通过gobject-introspection),目前尚无可用,但是pygir-ctypes看起来很有希望。 I would like to run my GUI on Windows. 我想在Windows上运行我的GUI。

Can someone explain the difference ? 有人可以解释差异吗?

好吧,我对pygir-ctypes不熟悉,但是PyGObject在Windows上相当有用: http : //sourceforge.net/projects/pygobjectwin32/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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