OSX: importing gi from pygobject3: “ImportError: cannot import name _gi”

2018-04-12 Thread Krister
Hello all, I had a working python program that uses GTK3 as installed with homebrew. After updating my OSX system I now get the error: import gi File "/usr/local/lib/python2.7/site-packages/gi/__init__.py", line 42, in ImportError: cannot import name _gi The minimal example that reproduces

Fwd: registering Gtk.EventButton as argument to custom signal

2016-05-03 Thread Krister Swenson
Hello, I'm trying to port my open source (https://bitbucket.org/thekswenson/alpha) GTK 2 code to GTK 3. A have defined a custom signal as follows: __gsignals__ = {'clicked' : (GObject.SignalFlags.RUN_LAST, None, (GObject.TYPE_STRING, Gdk.Event))} I later emit this