def __init__(self): import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk self._gtk = Gtk