objdictgen/subindextable.py
changeset 453 c74a73474cce
parent 340 60e1eb89455e
child 485 24b506ea314b
equal deleted inserted replaced
452:9b67c71adbb7 453:c74a73474cce
   174                     elif editortype == "number":
   174                     elif editortype == "number":
   175                         editor = wx.grid.GridCellNumberEditor()
   175                         editor = wx.grid.GridCellNumberEditor()
   176                         renderer = wx.grid.GridCellNumberRenderer()
   176                         renderer = wx.grid.GridCellNumberRenderer()
   177                         if colname == "value" and "min" in editors and "max" in editors:
   177                         if colname == "value" and "min" in editors and "max" in editors:
   178                             editor.SetParameters("%s,%s"%(editors["min"],editors["max"]))
   178                             editor.SetParameters("%s,%s"%(editors["min"],editors["max"]))
   179                     elif editortype == "real":
   179                     elif editortype == "float":
   180                         editor = wx.grid.GridCellFloatEditor()
   180                         editor = wx.grid.GridCellTextEditor()
   181                         renderer = wx.grid.GridCellFloatRenderer()
   181                         renderer = wx.grid.GridCellStringRenderer()
   182                         if colname == "value" and "min" in editors and "max" in editors:
       
   183                             editor.SetParameters("%s,%s"%(editors["min"],editors["max"]))
       
   184                     elif editortype == "bool":
   182                     elif editortype == "bool":
   185                         editor = wx.grid.GridCellChoiceEditor()
   183                         editor = wx.grid.GridCellChoiceEditor()
   186                         editor.SetParameters(BoolList)
   184                         editor.SetParameters(BoolList)
   187                     elif editortype == "access":
   185                     elif editortype == "access":
   188                         editor = wx.grid.GridCellChoiceEditor()
   186                         editor = wx.grid.GridCellChoiceEditor()