Debugger/DebugViewer.py

changeset 406
eacf81fad150
parent 96
9624a110667d
child 464
a2b1d1770ef0
equal deleted inserted replaced
405:374066392929 406:eacf81fad150
329 self.currentStack = stack 329 self.currentStack = stack
330 self.sourceButton.setEnabled(len(stack) > 0) 330 self.sourceButton.setEnabled(len(stack) > 0)
331 for s in stack: 331 for s in stack:
332 # just show base filename to make it readable 332 # just show base filename to make it readable
333 s = (os.path.basename(s[0]), s[1], s[2]) 333 s = (os.path.basename(s[0]), s[1], s[2])
334 self.stackComboBox.addItem('%s:%s:%s' % s) 334 self.stackComboBox.addItem('{0}:{1}:{2}'.format(*s))
335 335
336 def setVariablesFilter(self, globalsFilter, localsFilter): 336 def setVariablesFilter(self, globalsFilter, localsFilter):
337 """ 337 """
338 Public slot to set the local variables filter. 338 Public slot to set the local variables filter.
339 339
409 if thread['broken']: 409 if thread['broken']:
410 state = self.trUtf8("waiting at breakpoint") 410 state = self.trUtf8("waiting at breakpoint")
411 else: 411 else:
412 state = self.trUtf8("running") 412 state = self.trUtf8("running")
413 itm = QTreeWidgetItem(self.__threadList, 413 itm = QTreeWidgetItem(self.__threadList,
414 ["%d" % thread['id'], thread['name'], state]) 414 ["{0:d}".format(thread['id']), thread['name'], state])
415 if thread['id'] == currentID: 415 if thread['id'] == currentID:
416 citm = itm 416 citm = itm
417 417
418 self.__threadList.header().resizeSections(QHeaderView.ResizeToContents) 418 self.__threadList.header().resizeSections(QHeaderView.ResizeToContents)
419 self.__threadList.header().setStretchLastSection(True) 419 self.__threadList.header().setStretchLastSection(True)

eric ide

mercurial