add script test

This commit is contained in:
yumoqing 2022-08-25 21:00:09 +08:00
parent 20f00688a8
commit f8c0dbedc0
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,18 @@
{
"font_sizes":{
"smallest":1.5,
"small":2.5,
"normal":3.5,
"large":4.5,
"huge":5.5,
"hugest":6.5
},
"font_name":"normal",
"script_root":"$[workdir]$/scripts",
"root":{
"widgettype":"urlwidget",
"options":{
"url":"file://index.tmpl"
}
}
}

10
test/script/main.py Normal file
View File

@ -0,0 +1,10 @@
from kivyblocks.blocksapp import BlocksApp
from kivyblocks.blocks import registerWidget, Blocks
import kivyblocks.register
class ScriptApp(BlocksApp):
pass
if __name__ == '__main__':
ScriptApp().run()

View File

@ -0,0 +1,12 @@
{
"widgettype":"VBox",
"options":{},
"subwidgets":[
{
"widgettype":"Button",
"options":{
"text":"Hello"
}
}
]
}