ProjectPyramid/ConfigurationPage/PyramidPage.py

branch
eric7
changeset 160
41b23683d5a1
parent 159
d4e7f5a389e6
child 164
277a93891db9
equal deleted inserted replaced
159:d4e7f5a389e6 160:41b23683d5a1
7 Module implementing the Pyramid configuration page. 7 Module implementing the Pyramid configuration page.
8 """ 8 """
9 9
10 from PyQt6.QtCore import pyqtSlot 10 from PyQt6.QtCore import pyqtSlot
11 11
12 from EricWidgets.EricApplication import ericApp 12 try:
13 from EricWidgets.EricPathPicker import EricPathPickerModes 13 from eric7.EricGui import EricPixmapCache
14 except ImportError:
15 from UI import PixmapCache as EricPixmapCache
16 from eric7.EricWidgets.EricApplication import ericApp
17 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
18 from eric7.Globals import isWindowsPlatform, isMacPlatform
19 from eric7.Preferences.ConfigurationPages.ConfigurationPageBase import (
20 ConfigurationPageBase,
21 )
14 22
15 from Preferences.ConfigurationPages.ConfigurationPageBase import ConfigurationPageBase
16 from .Ui_PyramidPage import Ui_PyramidPage 23 from .Ui_PyramidPage import Ui_PyramidPage
17
18 import UI.PixmapCache
19
20 from Globals import isWindowsPlatform, isMacPlatform
21 24
22 25
23 class PyramidPage(ConfigurationPageBase, Ui_PyramidPage): 26 class PyramidPage(ConfigurationPageBase, Ui_PyramidPage):
24 """ 27 """
25 Class implementing the Pyramid configuration page. 28 Class implementing the Pyramid configuration page.
51 consoleList.append("mate-terminal -e") 54 consoleList.append("mate-terminal -e")
52 consoleList.append("xfce4-terminal -e") 55 consoleList.append("xfce4-terminal -e")
53 consoleList.append("xterm -e") 56 consoleList.append("xterm -e")
54 self.consoleCommandCombo.addItems(consoleList) 57 self.consoleCommandCombo.addItems(consoleList)
55 58
56 self.urlResetButton.setIcon(UI.PixmapCache.getIcon("editUndo")) 59 self.urlResetButton.setIcon(EricPixmapCache.getIcon("editUndo"))
57 60
58 self.py3ShellCombo.addItem(self.tr("Plain Python"), "python") 61 self.py3ShellCombo.addItem(self.tr("Plain Python"), "python")
59 self.py3ShellCombo.addItem(self.tr("IPython"), "ipython") 62 self.py3ShellCombo.addItem(self.tr("IPython"), "ipython")
60 self.py3ShellCombo.addItem(self.tr("bpython"), "bpython") 63 self.py3ShellCombo.addItem(self.tr("bpython"), "bpython")
61 64

eric ide

mercurial