From: Robin Dunn Date: Sat, 24 Aug 2002 21:44:02 +0000 (+0000) Subject: Test code for float editors X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f19533bfd166432cace3101db90417c5e95e29e4 Test code for float editors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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] ] diff --git a/wxPython/demo/wxGrid.py b/wxPython/demo/wxGrid.py index 3cfe506aa3..a95ed9bacc 100644 --- a/wxPython/demo/wxGrid.py +++ b/wxPython/demo/wxGrid.py @@ -99,3 +99,11 @@ how things work. """ + + + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +