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

allow-none in structs don't work #12

Closed lazka closed 10 years ago

lazka commented 10 years ago
>>> from pgi.repository import Gio
>>> Gio.SimpleAction
<class 'Gio.SimpleAction'>
>>> Gio.SimpleAction.new("now", None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 13, in new
TypeError: new() argument 'parameter_type'(2): None is not a structure object