bugfix
This commit is contained in:
parent
39bd3e0791
commit
bee655750b
@ -1,5 +1,5 @@
|
|||||||
import time
|
import time
|
||||||
import ujson as json
|
import json
|
||||||
from kivy.uix.gridlayout import GridLayout
|
from kivy.uix.gridlayout import GridLayout
|
||||||
from kivy.uix.boxlayout import BoxLayout
|
from kivy.uix.boxlayout import BoxLayout
|
||||||
from kivy.uix.scrollview import ScrollView
|
from kivy.uix.scrollview import ScrollView
|
||||||
@ -264,7 +264,41 @@ class DataGridPart(WidgetReady, BoxLayout):
|
|||||||
def addRow(self,id, data):
|
def addRow(self,id, data):
|
||||||
return self.body.addRow(id, data)
|
return self.body.addRow(id, data)
|
||||||
|
|
||||||
|
|
||||||
class DataGrid(WidgetReady, BGColorBehavior, BoxLayout):
|
class DataGrid(WidgetReady, BGColorBehavior, BoxLayout):
|
||||||
|
"""
|
||||||
|
DataGrid data format:
|
||||||
|
{
|
||||||
|
"widgettype":"DataGrid",
|
||||||
|
"dataloader":{
|
||||||
|
"page":1,
|
||||||
|
"rows":60,
|
||||||
|
"dataurl":"eeee",
|
||||||
|
"params":{
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fields":[
|
||||||
|
{
|
||||||
|
"name":"field1",
|
||||||
|
"label":"Field1",
|
||||||
|
"datatype":"str",
|
||||||
|
"uitype":"code",
|
||||||
|
"value_field":,
|
||||||
|
"text_field":
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"field2",
|
||||||
|
"label":"Field2",
|
||||||
|
"viewer":{
|
||||||
|
block dic
|
||||||
|
}
|
||||||
|
}
|
||||||
|
...
|
||||||
|
]
|
||||||
|
"binds":[
|
||||||
|
]
|
||||||
|
}
|
||||||
|
"""
|
||||||
row_selected = BooleanProperty(False)
|
row_selected = BooleanProperty(False)
|
||||||
def __init__(self,color_level=-1,radius=[],**options):
|
def __init__(self,color_level=-1,radius=[],**options):
|
||||||
kw = DictObject()
|
kw = DictObject()
|
||||||
|
Loading…
Reference in New Issue
Block a user