eric6/E5Gui/E5PathPicker.py

changeset 8265
0090cfa83159
parent 8257
28146736bbfc
child 8281
184ece570a2b
--- a/eric6/E5Gui/E5PathPicker.py	Mon Apr 26 17:33:08 2021 +0200
+++ b/eric6/E5Gui/E5PathPicker.py	Tue Apr 27 17:25:06 2021 +0200
@@ -7,10 +7,9 @@
 Module implementing a path picker widget.
 """
 
+import enum
 import os
 
-from enum import Enum
-
 from PyQt5.QtCore import pyqtSignal, Qt, QFileInfo, QCoreApplication, QDir
 from PyQt5.QtWidgets import QWidget, QHBoxLayout, QToolButton, QSizePolicy
 
@@ -22,10 +21,12 @@
 import UI.PixmapCache
 
 
-class E5PathPickerModes(Enum):
+class E5PathPickerModes(enum.Enum):
     """
     Class implementing the path picker modes.
     """
+    # TODO: convert these to all uppercase without "Mode" when doing
+    #       the port to PyQt6 (i.e. eric7)
     OpenFileMode = 0
     OpenFilesMode = 1
     SaveFileMode = 2

eric ide

mercurial