Debugger/ExceptionLogger.py

changeset 476
121633976eca
parent 458
1695e7a2db54
child 482
4650a72c307a
equal deleted inserted replaced
475:94b3fdd34c60 476:121633976eca
20 This class displays a log of all exceptions having occured during 20 This class displays a log of all exceptions having occured during
21 a debugging session. 21 a debugging session.
22 22
23 @signal sourceFile(string, int) emitted to open a source file at a line 23 @signal sourceFile(string, int) emitted to open a source file at a line
24 """ 24 """
25 sourceFile = pyqtSignal(str, int)
26
25 def __init__(self, parent=None): 27 def __init__(self, parent=None):
26 """ 28 """
27 Constructor 29 Constructor
28 30
29 @param parent the parent widget of this widget 31 @param parent the parent widget of this widget
125 return 127 return
126 128
127 entry = itm.text(0) 129 entry = itm.text(0)
128 entryList = entry.split(",") 130 entryList = entry.split(",")
129 try: 131 try:
130 self.emit(SIGNAL('sourceFile'), entryList[0], int(entryList[1])) 132 self.sourceFile.emit(entryList[0], int(entryList[1]))
131 except (IndexError, ValueError): 133 except (IndexError, ValueError):
132 pass 134 pass
133 135
134 def __configure(self): 136 def __configure(self):
135 """ 137 """

eric ide

mercurial