Search code examples
command-linepython-3.2

How to make a cool looking layout for menu in python 3.2?


I have created a menu for a class and, I'm hoping that I can find out how to achieve a cool look for it. This program is command line based, not GUI.

The only way that I can figure this out is to do something silly like:

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

I would like for all of the lines to actually connect. My menu would be inside of this box. I hope I have given enough information.

Any suggestions will be greatly appreciated! Thanks!


Solution

  • You may like http://tuxradar.com/content/code-project-build-ncurses-ui-python or http://excess.org/urwid/examples.html :-)