Ejemplo n.º 1
0
 def resize(self):
     try:
         self.lines = format_tb(self.W - 1, self.traceback_)
         self.area = ScrollArea(self.H, len(self.lines), 0)
         self.draw()
     except:
         logger.critical(traceback.format_exc())
Ejemplo n.º 2
0
 def resize(self):
     try:
         self.lines = format_tb(self.W-1, self.traceback_)
         self.area = ScrollArea(self.H, len(self.lines), 0)
         self.draw()
     except:
         logger.critical(traceback.format_exc())
Ejemplo n.º 3
0
 def populate_result(self):
     """[Re]create just the result ScrollArea.
     """
     if self.selected == "":
         curresult = ()
     else:
         traceback_ = self.detail.data[self.selected][1]
         self.curresult = format_tb(self.c2[1], traceback_)
     self.result = ScrollArea(self.c1[0] + 1, len(self.curresult), self.toprows)
Ejemplo n.º 4
0
 def populate_result(self):
     """[Re]create just the result ScrollArea.
     """
     if self.selected == '':
         curresult = ()
     else:
         traceback_ = self.detail.data[self.selected][1]
         self.curresult = format_tb(self.c2[1], traceback_)
     self.result = ScrollArea( self.c1[0]+1
                             , len(self.curresult)
                             , self.toprows
                              )