ProjectFlask/RunServerDialog.py

branch
eric7
changeset 72
4557829a4acf
parent 70
22e1d0f69668
child 75
7a30d96ea9f6
equal deleted inserted replaced
71:3ceae1dcbffa 72:4557829a4acf
11 11
12 from PyQt6.QtCore import pyqtSlot, Qt, QProcess, QTimer 12 from PyQt6.QtCore import pyqtSlot, Qt, QProcess, QTimer
13 from PyQt6.QtGui import QTextCharFormat 13 from PyQt6.QtGui import QTextCharFormat
14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QMenu 14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QMenu
15 15
16 from EricWidgets import EricMessageBox 16 try:
17 from EricWidgets.EricApplication import ericApp 17 from eric7.EricGui import EricPixmapCache
18 except ImportError:
19 from UI import PixmapCache as EricPixmapCache
20 from eric7.EricWidgets import EricMessageBox
21 from eric7.EricWidgets.EricApplication import ericApp
18 22
19 from .Ui_RunServerDialog import Ui_RunServerDialog 23 from .Ui_RunServerDialog import Ui_RunServerDialog
20 24
21 from . import AnsiTools 25 from . import AnsiTools
22 from .ServerStartOptionsDialog import ServerStartOptionsDialog 26 from .ServerStartOptionsDialog import ServerStartOptionsDialog
23
24 import UI.PixmapCache
25 27
26 28
27 # TODO: should this be placed into the sidebar as a sidebar widget? 29 # TODO: should this be placed into the sidebar as a sidebar widget?
28 class RunServerDialog(QDialog, Ui_RunServerDialog): 30 class RunServerDialog(QDialog, Ui_RunServerDialog):
29 """ 31 """
81 # re-start server with options 83 # re-start server with options
82 self.__actionsMenu.addAction( 84 self.__actionsMenu.addAction(
83 self.tr("Re-start Server with Options"), self.__restartServerWithOptions 85 self.tr("Re-start Server with Options"), self.__restartServerWithOptions
84 ) 86 )
85 87
86 self.menuButton.setIcon(UI.PixmapCache.getIcon("actionsToolButton")) 88 self.menuButton.setIcon(EricPixmapCache.getIcon("actionsToolButton"))
87 self.menuButton.setMenu(self.__actionsMenu) 89 self.menuButton.setMenu(self.__actionsMenu)
88 90
89 @pyqtSlot() 91 @pyqtSlot()
90 def __showActionsMenu(self): 92 def __showActionsMenu(self):
91 """ 93 """

eric ide

mercurial