问题描述:
3.8.9编码版中运行正常的打开自定义对话框代码在3.9.9版本显示不正常
解决方案:
在控件配置项中增加”value”字段(默认值),否则会报错
并增加”dialogTitle”字段,否则会弹出四个按钮
import xbotfrom xbot import print, sleep, appfrom .import packagedef main(args):custom_dialog=app.dialog.show_custom_dialog({"dialogTitle":"title","settings": {"editors": [{"type": "TextBox","label": "输入框","VariableName": "TextBox","value": None,"nullText": "请输入文本内容"}],"buttons": [{"type": "Button","label": "确定","theme": "red","hotKey": "Return"},{"type": "Button","label": "取消","theme": "white","hotKey": "Escape"}]}})
