将底部工具栏添加到python

时间:2020-01-21 18:50:19

标签: python

在hint_toolkit中,用户可以通过执行以下操作来添加底部的工具栏:

from prompt_toolkit import prompt
def bottom_toolbar():
  return 'toolbar'
input_thing = prompt('hello world', bottom_toolbar=bottom_toolbar)

但是,在制作游戏的过程中,我想要一个底部工具栏无论是否输入。例如,如果我有一个战斗顺序或场景,我仍然想要一个可以更改的底部工具栏。有什么办法可以做到吗?

0 个答案:

没有答案