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