示例#1
0
 def load_positions(self):
     widths = settings.session_get('asm_view_col_widths')
     cols = self.list.GetColumnCount()
     if cols != len(widths):
         raise Exception("Wrong number of saved column widths.")
     for i, width, in enumerate(widths):
         self.list.SetColumnWidth(i, width)
示例#2
0
 def load_positions(self):
     widths = settings.session_get('asm_view_col_widths')
     cols = self.list.GetColumnCount()
     if cols != len(widths):
         raise Exception("Wrong number of saved column widths.")
     for i, width, in enumerate(widths):
         self.list.SetColumnWidth(i, width)
示例#3
0
 def load_positions(self):
     try:
         widths = settings.session_get('runtime_view_col_widths')
         cols = self.GetColumnCount()
         if len(widths) != cols:
             raise Exception("Mismatch of stored column widths")
         for i, width in enumerate(widths):
             self.SetColumnWidth(i, width)
     except:
         pass
示例#4
0
 def load_positions(self):
     try:
         widths = settings.session_get('runtime_view_col_widths')
         cols = self.GetColumnCount()
         if len(widths) != cols:
             raise Exception("Mismatch of stored column widths")
         for i, width in enumerate(widths):
             self.SetColumnWidth(i, width)
     except:
         pass