Closed stuaxo closed 10 years ago
I've been doing the following, but it seems like I should be able to do gi.require_version .. .is this right ?
try: import gi gi.require_version('Gtk', '3.0') except ImportError: import pgi pgi.install_as_gi() pgi.require_version('Gtk', '3.0')
# once before any gi import try: import pgi pgi.install_as_gi() except ImportError: pass import gi gi.require_version('Gtk', '3.0')
I've been doing the following, but it seems like I should be able to do gi.require_version .. .is this right ?