diff options
Diffstat (limited to 'test/gi/gi-test.py')
-rw-r--r-- | test/gi/gi-test.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/gi/gi-test.py b/test/gi/gi-test.py index 10cee8bc6..6c775ea0c 100644 --- a/test/gi/gi-test.py +++ b/test/gi/gi-test.py @@ -1,6 +1,12 @@ #!/usr/bin/python -from gi.repository import Gtk +import gi +gi.require_version('Scintilla', '0.1') + +# Scintilla is imported before because it loads Gtk with a specified version +# this avoids a warning when Gtk is imported without version such as below (where +# it is imported without because this script works with gtk2 and gtk3) from gi.repository import Scintilla +from gi.repository import Gtk win = Gtk.Window() win.connect("delete-event", Gtk.main_quit) |