1

我已经为一个类创建了一个菜单,我希望我能找到如何让它看起来很酷。该程序是基于命令行的,而不是 GUI。

我能解决这个问题的唯一方法是做一些愚蠢的事情,比如:

print(' ------------------------')
print('|                        |')
print('|                        |')
print('|                        |')
print('|                        |')
print('|                        |')
print(' ------------------------')

我希望所有的线路都能真正连接起来。我的菜单会在这个盒子里。我希望我已经提供了足够的信息。

任何建议将不胜感激!谢谢!

4

1 回答 1

2

您可能喜欢http://tuxradar.com/content/code-project-build-ncurses-ui-pythonhttp://excess.org/urwid/examples.html :-)

于 2012-04-02T23:49:22.213 回答