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)
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