ProjectDjango/DjangoCheckOptionsDialog.py

branch
eric7
changeset 181
2f5c3487139c
parent 180
64339135bd61
child 188
b08c2cb2e0a0
equal deleted inserted replaced
180:64339135bd61 181:2f5c3487139c
10 import os 10 import os
11 11
12 from PyQt6.QtCore import pyqtSlot, Qt, QProcess 12 from PyQt6.QtCore import pyqtSlot, Qt, QProcess
13 from PyQt6.QtWidgets import QDialog 13 from PyQt6.QtWidgets import QDialog
14 14
15 from EricWidgets import EricFileDialog 15 from eric7 import Preferences, Utilities
16
17 try:
18 from eric7.EricGui import EricPixmapCache
19 except ImportError:
20 from UI import PixmapCache as EricPixmapCache
21 from eric7.EricWidgets import EricFileDialog
16 22
17 from .Ui_DjangoCheckOptionsDialog import Ui_DjangoCheckOptionsDialog 23 from .Ui_DjangoCheckOptionsDialog import Ui_DjangoCheckOptionsDialog
18
19 import Preferences
20 import Utilities
21 import UI.PixmapCache
22 24
23 25
24 class DjangoCheckOptionsDialog(QDialog, Ui_DjangoCheckOptionsDialog): 26 class DjangoCheckOptionsDialog(QDialog, Ui_DjangoCheckOptionsDialog):
25 """ 27 """
26 Class implementing a dialog to enter the options for a check operation. 28 Class implementing a dialog to enter the options for a check operation.
42 @type QWidget 44 @type QWidget
43 """ 45 """
44 super().__init__(parent) 46 super().__init__(parent)
45 self.setupUi(self) 47 self.setupUi(self)
46 48
47 self.settingsFileButton.setIcon(UI.PixmapCache.getIcon("open")) 49 self.settingsFileButton.setIcon(EricPixmapCache.getIcon("open"))
48 50
49 self.__python = python 51 self.__python = python
50 self.__path = path 52 self.__path = path
51 53
52 self.appsComboBox.addItems([""] + apps) 54 self.appsComboBox.addItems([""] + apps)

eric ide

mercurial