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):
|
def UiError(title="出错", message="出错啦", timeout=5, **kw):
|
||||||
return {
|
dic = {
|
||||||
"widgettype":"Error",
|
"widgettype":"Error",
|
||||||
"options":{
|
"options":{
|
||||||
"author":"tr",
|
"author":"tr",
|
||||||
@ -41,9 +41,10 @@ def UiError(title="出错", message="出错啦", timeout=5, **kw):
|
|||||||
"message":message
|
"message":message
|
||||||
}
|
}
|
||||||
}.update(kw)
|
}.update(kw)
|
||||||
|
return dic
|
||||||
|
|
||||||
def UiMessage(title="消息", message="后台消息", timeout=5, **kw):
|
def UiMessage(title="消息", message="后台消息", timeout=5, **kw):
|
||||||
return {
|
dic = {
|
||||||
"widgettype":"Message",
|
"widgettype":"Message",
|
||||||
"options":{
|
"options":{
|
||||||
"author":"tr",
|
"author":"tr",
|
||||||
@ -54,6 +55,7 @@ def UiMessage(title="消息", message="后台消息", timeout=5, **kw):
|
|||||||
"message":message
|
"message":message
|
||||||
}
|
}
|
||||||
}.update(kw)
|
}.update(kw)
|
||||||
|
return dic
|
||||||
|
|
||||||
def load_pybricks():
|
def load_pybricks():
|
||||||
g = ServerEnv()
|
g = ServerEnv()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user