How2 use curses for data input
milesthompson at sprint.ca
Thu Apr 20 19:15:40 EDT 2000
I located it on the RH system here in the office at home. The target machine
is Debian, and I think I can install RPM on it so that if need be, I can get
the RPM. Debian doesn't seem to have a snack package.
Thanks for the lead, much appreciated. I've searched google, www.python.org,
and www.debian.org for information on how to use it. All that's on my system
is snack.py, .pyc and _snackmodule.so. I *hoped* there might be some clues
in __builtin__ or in snakc.py, but I drew a blank.
Do you have any suggestions where I might dig something up? (I had really
hoped that RH might have something, but nope!)
Regards - Miles
Grant Edwards wrote:
> In article <38FF6DE2.5751423A at sprint.ca>, Miles Thompson wrote:
> >I 've read the curses part of the manual, and the HOWTO, but I'm not
> >much wiser. I need to capture some user input (name of a new directory
> >for archiving some web files), and I understand how to define a window,
> >etc. What I don't know to do is how to edit the lines, and loop from
> >last to first.
> You might want to take a look at the "snack" module, which is a
> wrapper for the newt library (which is based on slang rather
> than curses). It impliments a set of text-mode widgets such as
> buttons, scroll lists, data entry fields, checkboxes, etc. You
> stick a bunch of them on a "form" and pop it up. When the user
> is done, you get the values back somehow (I forget exactly).
> If all you need to do is prompt the user for some data, it
> should do the trick.
> Redhat's text-mode installer is (or at least was) written in
> Python using snack/newt.
> Grant Edwards grante Yow! Why was I BORN?
More information about the Python-list