eric6/E5Gui/E5PathPicker.py

changeset 8265
0090cfa83159
parent 8257
28146736bbfc
child 8281
184ece570a2b
equal deleted inserted replaced
8264:f95dde35d0ab 8265:0090cfa83159
5 5
6 """ 6 """
7 Module implementing a path picker widget. 7 Module implementing a path picker widget.
8 """ 8 """
9 9
10 import enum
10 import os 11 import os
11
12 from enum import Enum
13 12
14 from PyQt5.QtCore import pyqtSignal, Qt, QFileInfo, QCoreApplication, QDir 13 from PyQt5.QtCore import pyqtSignal, Qt, QFileInfo, QCoreApplication, QDir
15 from PyQt5.QtWidgets import QWidget, QHBoxLayout, QToolButton, QSizePolicy 14 from PyQt5.QtWidgets import QWidget, QHBoxLayout, QToolButton, QSizePolicy
16 15
17 from . import E5FileDialog 16 from . import E5FileDialog
20 from .E5ComboBox import E5ClearableComboBox 19 from .E5ComboBox import E5ClearableComboBox
21 20
22 import UI.PixmapCache 21 import UI.PixmapCache
23 22
24 23
25 class E5PathPickerModes(Enum): 24 class E5PathPickerModes(enum.Enum):
26 """ 25 """
27 Class implementing the path picker modes. 26 Class implementing the path picker modes.
28 """ 27 """
28 # TODO: convert these to all uppercase without "Mode" when doing
29 # the port to PyQt6 (i.e. eric7)
29 OpenFileMode = 0 30 OpenFileMode = 0
30 OpenFilesMode = 1 31 OpenFilesMode = 1
31 SaveFileMode = 2 32 SaveFileMode = 2
32 SaveFileEnsureExtensionMode = 3 33 SaveFileEnsureExtensionMode = 3
33 SaveFileOverwriteMode = 4 34 SaveFileOverwriteMode = 4

eric ide

mercurial