|
@@ -33,7 +33,6 @@ async def main():
|
|
|
'title': 'PyWebIO set_env() Demo',
|
|
|
'output_animation': True,
|
|
|
'auto_scroll_bottom': True,
|
|
|
- 'output_fixed_height': True,
|
|
|
}
|
|
|
set_env(**state)
|
|
|
|
|
@@ -44,13 +43,6 @@ async def main():
|
|
|
state['title'] = await input('请输入标题', value=state['title'])
|
|
|
set_env(title=state['title'])
|
|
|
toast('已将标题设置为%r' % state['title'])
|
|
|
- elif key == 'output_fixed_height':
|
|
|
- act = await actions('选择要对output_fixed_height设置项进行的操作', ['设置为False', '自定义高度'])
|
|
|
- if act == '自定义高度':
|
|
|
- state['output_fixed_height'] = await input('请输入输出区高度(像素)', type=NUMBER)
|
|
|
- else:
|
|
|
- state['output_fixed_height'] = False
|
|
|
- set_env(output_fixed_height=state['output_fixed_height'])
|
|
|
elif key in state:
|
|
|
state[key] = not (state[key])
|
|
|
set_env(**{key: state[key]})
|