diff --git a/tuhi/gui/drawing.py b/tuhi/gui/drawing.py index af7f4ac..a2018da 100644 --- a/tuhi/gui/drawing.py +++ b/tuhi/gui/drawing.py @@ -12,7 +12,6 @@ # from gettext import gettext as _ -from gi.repository import GObject, Gtk, GdkPixbuf, Gdk import xdg.BaseDirectory import os @@ -22,6 +21,8 @@ from tuhi.svg import JsonSvg import gi gi.require_version("Gtk", "3.0") +from gi.repository import GObject, Gtk, GdkPixbuf, Gdk # NOQA + DATA_PATH = Path(xdg.BaseDirectory.xdg_cache_home, 'tuhi', 'svg') diff --git a/tuhi/gui/drawingperspective.py b/tuhi/gui/drawingperspective.py index ec47d36..d2f8faf 100644 --- a/tuhi/gui/drawingperspective.py +++ b/tuhi/gui/drawingperspective.py @@ -11,15 +11,15 @@ # GNU General Public License for more details. # -from gi.repository import GObject, Gtk from .drawing import Drawing from .config import Config import time -import gi import logging +import gi gi.require_version("Gtk", "3.0") +from gi.repository import GObject, Gtk # NOQA logger = logging.getLogger('tuhi.gui.drawingperspective') diff --git a/tuhi/gui/window.py b/tuhi/gui/window.py index 129c4a6..f6e9a68 100644 --- a/tuhi/gui/window.py +++ b/tuhi/gui/window.py @@ -11,16 +11,16 @@ # GNU General Public License for more details. # -from gettext import gettext as _ -from gi.repository import Gtk, Gio, GLib, GObject - from .drawingperspective import DrawingPerspective from .config import Config from tuhi.dbusclient import TuhiDBusClientManager +from gettext import gettext as _ import logging + import gi gi.require_version("Gtk", "3.0") +from gi.repository import Gtk, Gio, GLib, GObject # NOQA logger = logging.getLogger('tuhi.gui.window')