[Tutor] help for building tui?

Alan Gauld alan.gauld at btinternet.com
Fri Jul 4 10:28:12 CEST 2008

"Dong Li" <dongli2020 at gmail.com> wrote

> If I want to create a text user interface for my application, is 
> there
> any existed module to facilitate such building?

Yes, Python includes the cmd module which is a framework
for a menu driven command line. It is very like the help system
that Python uses (also the Python debugger pdb).


import cmd

or look at the module documentation.

Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list