Debugger/WatchPointViewer.py

changeset 539
87f9bce38a44
parent 531
26efb720a299
child 564
b3d966393ba9
equal deleted inserted replaced
538:7f1a56e80124 539:87f9bce38a44
9 9
10 from PyQt4.QtCore import * 10 from PyQt4.QtCore import *
11 from PyQt4.QtGui import * 11 from PyQt4.QtGui import *
12 12
13 from E5Gui.E5Application import e5App 13 from E5Gui.E5Application import e5App
14 from E5Gui import E5MessageBox
14 15
15 from .EditWatchpointDialog import EditWatchpointDialog 16 from .EditWatchpointDialog import EditWatchpointDialog
16 17
17 import Utilities 18 import Utilities
18 19
224 .format(Utilities.html_encode(cond)) 225 .format(Utilities.html_encode(cond))
225 else: 226 else:
226 msg = self.trUtf8("""<p>A watch expression '<b>{0}</b>'""" 227 msg = self.trUtf8("""<p>A watch expression '<b>{0}</b>'"""
227 """ for the variable <b>{1}</b> already exists.</p>""")\ 228 """ for the variable <b>{1}</b> already exists.</p>""")\
228 .format(special, Utilities.html_encode(cond)) 229 .format(special, Utilities.html_encode(cond))
229 QMessageBox.warning(None, 230 E5MessageBox.warning(self,
230 self.trUtf8("Watch expression already exists"), 231 self.trUtf8("Watch expression already exists"),
231 msg) 232 msg)
232 233
233 return duplicate 234 return duplicate
234 235

eric ide

mercurial