pygobject / pgi

[Unmaintained: Use PyGObject instead] GTK+ / GObject Introspection Bindings for PyPy.
GNU Lesser General Public License v2.1
74 stars 16 forks source link

GObject.type_register is not available. #14

Open stuaxo opened 10 years ago

stuaxo commented 10 years ago

gi

from gi.repository import GObject

GObject.type_register
<function _gobject.type_register>

pgi

import pgi
pgi.install_as_gi()

from gi.repository import GObject

GObject.type_register
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-4-89c251e991c5> in <module>()
----> 1 GObject.type_register

/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/site-packages/pgi/module.py in __getattr__(self, name)
     78         if not info:
     79             raise AttributeError("%r module has not attribute %r" %
---> 80                                  (self.__class__.__name__, name))
     81 
     82         cls = _attr_list[info.type.value]

AttributeError: 'GObject' module has not attribute 'type_register'

At the moment I don't have a small example of this (part from just seeing it is unavailable, above as I'm porting a codebase to gtk3.

It is mentioned here though

https://wiki.ubuntu.com/Novacut/GStreamer1.0