PluginColorString.py

branch
eric7
changeset 63
4f8151cc9b84
parent 62
970b0bcbd88c
child 64
22103a23447a
diff -r 970b0bcbd88c -r 4f8151cc9b84 PluginColorString.py
--- a/PluginColorString.py	Sat Dec 23 15:48:56 2023 +0100
+++ b/PluginColorString.py	Sat Dec 23 18:04:29 2023 +0100
@@ -308,6 +308,8 @@
         """
         Private slot implementing the named color string selection.
         """
+        from ColorString.ColorSelectionDialog import ColorSelectionDialog
+
         editor = ericApp().getObject("ViewManager").activeWindow()
         if editor is None:
             return
@@ -327,8 +329,6 @@
         else:
             currColor = ""
 
-        from ColorString.ColorSelectionDialog import ColorSelectionDialog
-
         dlg = ColorSelectionDialog(currColor, self.__ui)
         if dlg.exec() == QDialog.DialogCode.Accepted:
             colorStr = dlg.getColor()
@@ -418,4 +418,4 @@
 
 
 #
-# eflag: noqa = M801
+# eflag: noqa = M801, U200

eric ide

mercurial