GNOME Bugzilla – Bug 786735
Confusing error on Gtk.Application.add_option_group
Last modified: 2018-01-10 21:00:05 UTC
When I try to add some OptionGroup to Gtk.Application, I get error.
>>> from gi.repository import Gio, GLib, Gtk __main__:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. >>> app = Gtk.Application() >>> group = GLib.OptionGroup("unittest", "Unit test options", '', None) >>> app.add_option_group(group) Traceback (most recent call last):
+ Trace 237862
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/140.