eric7/Tools/TrayStarter.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
13 13
14 from PyQt6.QtCore import QProcess, QSettings, QFileInfo 14 from PyQt6.QtCore import QProcess, QSettings, QFileInfo
15 from PyQt6.QtGui import QCursor 15 from PyQt6.QtGui import QCursor
16 from PyQt6.QtWidgets import QSystemTrayIcon, QMenu, QDialog, QApplication 16 from PyQt6.QtWidgets import QSystemTrayIcon, QMenu, QDialog, QApplication
17 17
18 from E5Gui import E5MessageBox 18 from E5Gui import EricMessageBox
19 from E5Gui.E5Application import e5App 19 from E5Gui.EricApplication import ericApp
20 20
21 import Globals 21 import Globals
22 import UI.PixmapCache 22 import UI.PixmapCache
23 from UI.Info import Version, Program 23 from UI.Info import Version, Program
24 24
190 self.tr('Configure Tray Starter'), self.__showPreferences) 190 self.tr('Configure Tray Starter'), self.__showPreferences)
191 self.__menu.addSeparator() 191 self.__menu.addSeparator()
192 192
193 self.__menu.addAction( 193 self.__menu.addAction(
194 UI.PixmapCache.getIcon("exit"), 194 UI.PixmapCache.getIcon("exit"),
195 self.tr('Quit'), e5App().quit) 195 self.tr('Quit'), ericApp().quit)
196 196
197 def __loadRecentProjects(self): 197 def __loadRecentProjects(self):
198 """ 198 """
199 Private method to load the recently opened project filenames. 199 Private method to load the recently opened project filenames.
200 """ 200 """
275 275
276 if ( 276 if (
277 not os.path.isfile(applPath) or 277 not os.path.isfile(applPath) or
278 not proc.startDetached(sys.executable, args) 278 not proc.startDetached(sys.executable, args)
279 ): 279 ):
280 E5MessageBox.critical( 280 EricMessageBox.critical(
281 self, 281 self,
282 self.tr('Process Generation Error'), 282 self.tr('Process Generation Error'),
283 self.tr( 283 self.tr(
284 '<p>Could not start the process.<br>' 284 '<p>Could not start the process.<br>'
285 'Ensure that it is available as <b>{0}</b>.</p>' 285 'Ensure that it is available as <b>{0}</b>.</p>'
568 """<tr><td><b>{0}</b></td><td>{1}</td></tr>""" 568 """<tr><td><b>{0}</b></td><td>{1}</td></tr>"""
569 .format(Program, Version) 569 .format(Program, Version)
570 ) 570 )
571 versionText += self.tr("""</table>""") 571 versionText += self.tr("""</table>""")
572 572
573 E5MessageBox.about(None, Program, versionText) 573 EricMessageBox.about(None, Program, versionText)

eric ide

mercurial