Test code for float editors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,7 +14,7 @@ class CustomDataTable(wxPyGridTableBase):
|
|||||||
self.log = log
|
self.log = log
|
||||||
|
|
||||||
self.colLabels = ['ID', 'Description', 'Severity', 'Priority', 'Platform',
|
self.colLabels = ['ID', 'Description', 'Severity', 'Priority', 'Platform',
|
||||||
'Opened?', 'Fixed?', 'Tested?']
|
'Opened?', 'Fixed?', 'Tested?', 'TestFloat']
|
||||||
|
|
||||||
self.dataTypes = [wxGRID_VALUE_NUMBER,
|
self.dataTypes = [wxGRID_VALUE_NUMBER,
|
||||||
wxGRID_VALUE_STRING,
|
wxGRID_VALUE_STRING,
|
||||||
@@ -23,12 +23,14 @@ class CustomDataTable(wxPyGridTableBase):
|
|||||||
wxGRID_VALUE_CHOICE + ':all,MSW,GTK,other',
|
wxGRID_VALUE_CHOICE + ':all,MSW,GTK,other',
|
||||||
wxGRID_VALUE_BOOL,
|
wxGRID_VALUE_BOOL,
|
||||||
wxGRID_VALUE_BOOL,
|
wxGRID_VALUE_BOOL,
|
||||||
wxGRID_VALUE_BOOL]
|
wxGRID_VALUE_BOOL,
|
||||||
|
wxGRID_VALUE_FLOAT + ':6,2',
|
||||||
|
]
|
||||||
|
|
||||||
self.data = [
|
self.data = [
|
||||||
[1010, "The foo doesn't bar", "major", 1, 'MSW', 1, 1, 1],
|
[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],
|
[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]
|
[1012, "Rectangle() returns a triangle", "critical", 5, 'all', 0, 0, 0, 1.56]
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@@ -99,3 +99,11 @@ how things work.
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
import sys,os
|
||||||
|
import run
|
||||||
|
run.main(['', os.path.basename(sys.argv[0])])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user