Debugger/BreakPointViewer.py

changeset 476
121633976eca
parent 463
8d0309c4b7f6
child 501
5c615a85241a
equal deleted inserted replaced
475:94b3fdd34c60 476:121633976eca
21 Breakpoints will be shown with all their details. They can be modified through 21 Breakpoints will be shown with all their details. They can be modified through
22 the context menu of this widget. 22 the context menu of this widget.
23 23
24 @signal sourceFile(string, int) emitted to show the source of a breakpoint 24 @signal sourceFile(string, int) emitted to show the source of a breakpoint
25 """ 25 """
26 sourceFile = pyqtSignal(str, int)
27
26 def __init__(self, parent = None): 28 def __init__(self, parent = None):
27 """ 29 """
28 Constructor 30 Constructor
29 31
30 @param parent the parent (QWidget) 32 @param parent the parent (QWidget)
381 bp = self.__model.getBreakPointByIndex(sindex) 383 bp = self.__model.getBreakPointByIndex(sindex)
382 if not bp: 384 if not bp:
383 return 385 return
384 386
385 fn, line = bp[:2] 387 fn, line = bp[:2]
386 self.emit(SIGNAL("sourceFile"), fn, line) 388 self.sourceFile.emit(fn, line)
387 389
388 def highlightBreakpoint(self, fn, lineno): 390 def highlightBreakpoint(self, fn, lineno):
389 """ 391 """
390 Public slot to handle the clientLine signal. 392 Public slot to handle the clientLine signal.
391 393

eric ide

mercurial