objdictgen/subindextable.py
changeset 453 c74a73474cce
parent 340 60e1eb89455e
child 485 24b506ea314b
--- a/objdictgen/subindextable.py	Tue Apr 29 13:50:56 2008 +0200
+++ b/objdictgen/subindextable.py	Tue Apr 29 13:54:23 2008 +0200
@@ -176,11 +176,9 @@
                         renderer = wx.grid.GridCellNumberRenderer()
                         if colname == "value" and "min" in editors and "max" in editors:
                             editor.SetParameters("%s,%s"%(editors["min"],editors["max"]))
-                    elif editortype == "real":
-                        editor = wx.grid.GridCellFloatEditor()
-                        renderer = wx.grid.GridCellFloatRenderer()
-                        if colname == "value" and "min" in editors and "max" in editors:
-                            editor.SetParameters("%s,%s"%(editors["min"],editors["max"]))
+                    elif editortype == "float":
+                        editor = wx.grid.GridCellTextEditor()
+                        renderer = wx.grid.GridCellStringRenderer()
                     elif editortype == "bool":
                         editor = wx.grid.GridCellChoiceEditor()
                         editor.SetParameters(BoolList)