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