Compare commits
2 Commits
84d2434dd8
...
f82ef91f3b
| Author | SHA1 | Date | |
|---|---|---|---|
| f82ef91f3b | |||
| d7c488cda4 |
@ -1,13 +1,13 @@
|
|||||||
from ahserver.serverenv import ServerEnv
|
from ahserver.serverenv import ServerEnv
|
||||||
|
|
||||||
def UiComform(title="请确认",message="请确认", binds=[]):
|
def UiConform(title="请确认",message="请确认", binds=[]):
|
||||||
return {
|
return {
|
||||||
"widgettype":"Conform",
|
"widgettype":"Conform",
|
||||||
"options":{
|
"options":{
|
||||||
"width":"50%",
|
"width":"50%",
|
||||||
"height":"50%",
|
"height":"50%",
|
||||||
"archor":"cc",
|
"archor":"cc",
|
||||||
"icon": entire_url('/imgs/question.svg'),
|
"icon": entire_url('/bricks/imgs/question.svg'),
|
||||||
"title":title,
|
"title":title,
|
||||||
"message":message
|
"message":message
|
||||||
},
|
},
|
||||||
@ -60,4 +60,4 @@ def load_pybricks():
|
|||||||
g.UiWindow = UiWindow
|
g.UiWindow = UiWindow
|
||||||
g.UiError = UiError
|
g.UiError = UiError
|
||||||
g.UiMessage = UiMessage
|
g.UiMessage = UiMessage
|
||||||
|
g.UiComform = UiComform
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user