eric7/Debugger/CallTraceViewer.py

branch
eric7
changeset 9153
506e35e424d5
parent 9152
8a68afaf1ba2
equal deleted inserted replaced
9152:8a68afaf1ba2 9153:506e35e424d5
168 if fpath.exists(): 168 if fpath.exists():
169 res = EricMessageBox.yesNo( 169 res = EricMessageBox.yesNo(
170 self, 170 self,
171 self.tr("Save Call Trace Info"), 171 self.tr("Save Call Trace Info"),
172 self.tr("<p>The file <b>{0}</b> already exists." 172 self.tr("<p>The file <b>{0}</b> already exists."
173 " Overwrite it?</p>").format(str(fpath)), 173 " Overwrite it?</p>").format(fpath),
174 icon=EricMessageBox.Warning) 174 icon=EricMessageBox.Warning)
175 if not res: 175 if not res:
176 return 176 return
177 177
178 try: 178 try:
194 self, 194 self,
195 self.tr("Error saving Call Trace Info"), 195 self.tr("Error saving Call Trace Info"),
196 self.tr("""<p>The call trace info could not""" 196 self.tr("""<p>The call trace info could not"""
197 """ be written to <b>{0}</b></p>""" 197 """ be written to <b>{0}</b></p>"""
198 """<p>Reason: {1}</p>""") 198 """<p>Reason: {1}</p>""")
199 .format(str(fpath), str(err))) 199 .format(fpath, str(err)))
200 200
201 @pyqtSlot(QTreeWidgetItem, int) 201 @pyqtSlot(QTreeWidgetItem, int)
202 def on_callTrace_itemDoubleClicked(self, item, column): 202 def on_callTrace_itemDoubleClicked(self, item, column):
203 """ 203 """
204 Private slot to open the double clicked file in an editor. 204 Private slot to open the double clicked file in an editor.

eric ide

mercurial