12345678910111213141516171819202122232425262728 |
- """Test imports needed by X11-based tools."""
- from __future__ import print_function
- import os
- import sys
- os.environ['DISPLAY'] = ''
- import cairo
- import gi
- try:
- gi.require_version('Gtk', '3.0')
- except (AttributeError, ValueError):
-
- print('*** Need PyGObject V3 or later, and Gtk3 ***', file=sys.stderr)
- raise
- from gi.repository import GObject
- from gi.repository import Gtk
- from gi.repository import Gdk
- from gi.repository import Pango
|