X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..7f88f624d649a7feca8bcc90864cb9ef57eb5d8e:/wxPython/demo/GridCustTable.py diff --git a/wxPython/demo/GridCustTable.py b/wxPython/demo/GridCustTable.py index 58fb015cd3..ff78201fcb 100644 --- a/wxPython/demo/GridCustTable.py +++ b/wxPython/demo/GridCustTable.py @@ -14,7 +14,7 @@ class CustomDataTable(wxPyGridTableBase): self.log = log self.colLabels = ['ID', 'Description', 'Severity', 'Priority', 'Platform', - 'Opened?', 'Fixed?', 'Tested?'] + 'Opened?', 'Fixed?', 'Tested?', 'TestFloat'] self.dataTypes = [wxGRID_VALUE_NUMBER, wxGRID_VALUE_STRING, @@ -23,12 +23,14 @@ class CustomDataTable(wxPyGridTableBase): wxGRID_VALUE_CHOICE + ':all,MSW,GTK,other', wxGRID_VALUE_BOOL, wxGRID_VALUE_BOOL, - wxGRID_VALUE_BOOL] + wxGRID_VALUE_BOOL, + wxGRID_VALUE_FLOAT + ':6,2', + ] self.data = [ - [1010, "The foo doesn't bar", "major", 1, 'MSW', 1, 1, 1], - [1011, "I've got a wicket in my wocket", "wish list", 2, 'other', 0, 0, 0], - [1012, "Rectangle() returns a triangle", "critical", 5, 'all', 0, 0, 0] + [1010, "The foo doesn't bar", "major", 1, 'MSW', 1, 1, 1, 1.12], + [1011, "I've got a wicket in my wocket", "wish list", 2, 'other', 0, 0, 0, 1.50], + [1012, "Rectangle() returns a triangle", "critical", 5, 'all', 0, 0, 0, 1.56] ]