summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtk3/files_tab.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/ui/gtk3/files_tab.py')
-rw-r--r--deluge/ui/gtk3/files_tab.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/deluge/ui/gtk3/files_tab.py b/deluge/ui/gtk3/files_tab.py
index b3bd5b5e3..6fda2fd37 100644
--- a/deluge/ui/gtk3/files_tab.py
+++ b/deluge/ui/gtk3/files_tab.py
@@ -13,15 +13,22 @@ import json
import logging
import os.path
+import gi # isort:skip (Required before Gtk import).
+
+gi.require_version('Gtk', '3.0') # NOQA: E402
+
+# isort:imports-thirdparty
from gi.repository import Gio, Gtk
from gi.repository.Gdk import DragAction, ModifierType, keyval_name
from gi.repository.GObject import TYPE_UINT64
+# isort:imports-firstparty
import deluge.component as component
from deluge.common import open_file, show_file
from deluge.ui.client import client
from deluge.ui.common import FILE_PRIORITY
+# isort:imports-localfolder
from .common import (
listview_replace_treestore,
load_pickled_state_file,