Re: [Tutor] help for building tui?

2008-07-04 Thread Alan Gauld


"Dong Li" <[EMAIL PROTECTED]> 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).

try

import cmd
help(cmd)

or look at the module documentation.

--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] help for building tui?

2008-07-03 Thread Wolfram Kraus

Am 04.07.2008 08:33, Dong Li schrieb:

Hi, everyone

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



Yes, there is curses:

http://docs.python.org/lib/module-curses.html
http://www.amk.ca/python/howto/curses/

HTH,
Wolfram

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] help for building tui?

2008-07-03 Thread Dong Li
Hi, everyone

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

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor