eric7/Debugger/WatchPointViewer.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
12 ) 12 )
13 from PyQt6.QtWidgets import ( 13 from PyQt6.QtWidgets import (
14 QTreeView, QAbstractItemView, QMenu, QHeaderView, QDialog 14 QTreeView, QAbstractItemView, QMenu, QHeaderView, QDialog
15 ) 15 )
16 16
17 from E5Gui.E5Application import e5App 17 from E5Gui.EricApplication import ericApp
18 from E5Gui import E5MessageBox 18 from E5Gui import EricMessageBox
19 19
20 import Utilities 20 import Utilities
21 21
22 22
23 class WatchPointViewer(QTreeView): 23 class WatchPointViewer(QTreeView):
247 else: 247 else:
248 msg = self.tr( 248 msg = self.tr(
249 """<p>A watch expression '<b>{0}</b>'""" 249 """<p>A watch expression '<b>{0}</b>'"""
250 """ for the variable <b>{1}</b> already exists.</p>""" 250 """ for the variable <b>{1}</b> already exists.</p>"""
251 ).format(special, Utilities.html_encode(cond)) 251 ).format(special, Utilities.html_encode(cond))
252 E5MessageBox.warning( 252 EricMessageBox.warning(
253 self, 253 self,
254 self.tr("Watch expression already exists"), 254 self.tr("Watch expression already exists"),
255 msg) 255 msg)
256 256
257 return duplicate 257 return duplicate
441 441
442 def __configure(self): 442 def __configure(self):
443 """ 443 """
444 Private method to open the configuration dialog. 444 Private method to open the configuration dialog.
445 """ 445 """
446 e5App().getObject("UserInterface").showPreferences( 446 ericApp().getObject("UserInterface").showPreferences(
447 "debuggerGeneralPage") 447 "debuggerGeneralPage")

eric ide

mercurial