Plugins/PluginWizardQColorDialog.py

changeset 53
c3eb7cc1ff8b
parent 13
1af94a91f439
child 55
b5c84934de9c
equal deleted inserted replaced
52:ba69827929ee 53:c3eb7cc1ff8b
8 """ 8 """
9 9
10 from PyQt4.QtCore import QObject, SIGNAL 10 from PyQt4.QtCore import QObject, SIGNAL
11 from PyQt4.QtGui import QDialog, QMessageBox 11 from PyQt4.QtGui import QDialog, QMessageBox
12 12
13 from E4Gui.E4Application import e4App 13 from E4Gui.E4Application import e5App
14 from E4Gui.E4Action import E4Action 14 from E4Gui.E4Action import E4Action
15 15
16 from WizardPlugins.ColorDialogWizard.ColorDialogWizardDialog import \ 16 from WizardPlugins.ColorDialogWizard.ColorDialogWizardDialog import \
17 ColorDialogWizardDialog 17 ColorDialogWizardDialog
18 18
111 111
112 def __handle(self): 112 def __handle(self):
113 """ 113 """
114 Private method to handle the wizards action 114 Private method to handle the wizards action
115 """ 115 """
116 editor = e4App().getObject("ViewManager").activeWindow() 116 editor = e5App().getObject("ViewManager").activeWindow()
117 117
118 if editor == None: 118 if editor == None:
119 QMessageBox.critical(None, 119 QMessageBox.critical(None,
120 self.trUtf8('No current editor'), 120 self.trUtf8('No current editor'),
121 self.trUtf8('Please open or create a file first.')) 121 self.trUtf8('Please open or create a file first.'))

eric ide

mercurial