controls/IDBrowser.py
changeset 2537 eb4a4cc41914
parent 2492 7dd551ac2fa0
child 3750 f62625418bff
equal deleted inserted replaced
2536:2747d6e72eb8 2537:eb4a4cc41914
    96         ColumnsDesc = [
    96         ColumnsDesc = [
    97             args(_("ID"), COL_ID, width=70),
    97             args(_("ID"), COL_ID, width=70),
    98             args(_("Last URI"), COL_URI, width=300 if big else 80),
    98             args(_("Last URI"), COL_URI, width=300 if big else 80),
    99             args(_("Description"), COL_DESC, width=300 if big else 200,
    99             args(_("Description"), COL_DESC, width=300 if big else 200,
   100                  mode=dv.DATAVIEW_CELL_EDITABLE
   100                  mode=dv.DATAVIEW_CELL_EDITABLE
   101                       if self.isManager
   101                  if self.isManager
   102                       else dv.DATAVIEW_CELL_INERT),
   102                  else dv.DATAVIEW_CELL_INERT),
   103             args(_("Last connection"), COL_LAST, width=120),
   103             args(_("Last connection"), COL_LAST, width=120),
   104         ]
   104         ]
   105 
   105 
   106         self.model = IDBrowserModel(ctr.ProjectPath, len(ColumnsDesc))
   106         self.model = IDBrowserModel(ctr.ProjectPath, len(ColumnsDesc))
   107         self.dvc.AssociateModel(self.model)
   107         self.dvc.AssociateModel(self.model)