265 """ |
265 """ |
266 Public method to reset the SBVviewer. |
266 Public method to reset the SBVviewer. |
267 """ |
267 """ |
268 self.globalsViewer.handleResetUI() |
268 self.globalsViewer.handleResetUI() |
269 self.localsViewer.handleResetUI() |
269 self.localsViewer.handleResetUI() |
270 self.stackComboBox.clear() |
|
271 self.sourceButton.setEnabled(False) |
270 self.sourceButton.setEnabled(False) |
272 self.currentStack = None |
271 self.currentStack = None |
|
272 self.stackComboBox.clear() |
273 self.__threadList.clear() |
273 self.__threadList.clear() |
274 if self.embeddedShell: |
274 if self.embeddedShell: |
275 self.__tabWidget.setCurrentWidget(self.shellAssembly) |
275 self.__tabWidget.setCurrentWidget(self.shellAssembly) |
276 else: |
276 else: |
277 if self.embeddedBrowser: |
277 if self.embeddedBrowser: |
388 |
388 |
389 def __showSource(self): |
389 def __showSource(self): |
390 """ |
390 """ |
391 Private slot to handle the source button press to show the selected file. |
391 Private slot to handle the source button press to show the selected file. |
392 """ |
392 """ |
393 s = self.currentStack[self.stackComboBox.currentIndex()] |
393 index = self.stackComboBox.currentIndex() |
394 self.sourceFile.emit(s[0], int(s[1])) |
394 if index > -1 and self.currentStack: |
|
395 s = self.currentStack[index] |
|
396 self.sourceFile.emit(s[0], int(s[1])) |
395 |
397 |
396 def __frameSelected(self, frmnr): |
398 def __frameSelected(self, frmnr): |
397 """ |
399 """ |
398 Private slot to handle the selection of a new stack frame number. |
400 Private slot to handle the selection of a new stack frame number. |
399 |
401 |