bugfix
This commit is contained in:
parent
79947fa516
commit
39bf9847b6
@ -30,7 +30,7 @@ def UiWindow(title, icon, content, cheight=10, cwidth=15):
|
||||
}
|
||||
|
||||
def UiError(title="出错", message="出错啦", timeout=5, **kw):
|
||||
return {
|
||||
dic = {
|
||||
"widgettype":"Error",
|
||||
"options":{
|
||||
"author":"tr",
|
||||
@ -41,9 +41,10 @@ def UiError(title="出错", message="出错啦", timeout=5, **kw):
|
||||
"message":message
|
||||
}
|
||||
}.update(kw)
|
||||
return dic
|
||||
|
||||
def UiMessage(title="消息", message="后台消息", timeout=5, **kw):
|
||||
return {
|
||||
dic = {
|
||||
"widgettype":"Message",
|
||||
"options":{
|
||||
"author":"tr",
|
||||
@ -54,6 +55,7 @@ def UiMessage(title="消息", message="后台消息", timeout=5, **kw):
|
||||
"message":message
|
||||
}
|
||||
}.update(kw)
|
||||
return dic
|
||||
|
||||
def load_pybricks():
|
||||
g = ServerEnv()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user