summaryrefslogtreecommitdiffstats
path: root/deluge/plugins/Stats/deluge_stats/gtkui.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/plugins/Stats/deluge_stats/gtkui.py')
-rw-r--r--deluge/plugins/Stats/deluge_stats/gtkui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/deluge/plugins/Stats/deluge_stats/gtkui.py b/deluge/plugins/Stats/deluge_stats/gtkui.py
index c088060dc..39c1d4c37 100644
--- a/deluge/plugins/Stats/deluge_stats/gtkui.py
+++ b/deluge/plugins/Stats/deluge_stats/gtkui.py
@@ -9,10 +9,13 @@
# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
# the additional special exception to link portions of this program with the OpenSSL library.
# See LICENSE for more details.
-#
import logging
+import gi # isort:skip (Required before Gtk import).
+
+gi.require_version('Gtk', '3.0')
+
from gi.repository import Gtk
from gi.repository.Gdk import RGBA