[Tutor] boolean raw_input

Kent Johnson kent_johnson at skillsoft.com
Fri Aug 20 01:38:59 CEST 2004


Maybe you should use a GUI to allow the user to pick the directory to 
check? Or take it as a command line argument? Someone recently posted code 
that uses Tkinter to get a file path.

Kent

At 11:23 PM 8/19/2004 +0100, Bernard Lebel wrote:
> > raw_input is strictly text based. Check boxes are GUI things.
> > What do you have in mind exactly? Can you show us some
> > hypothetical code that does what you would like, then
> > explain how it would appear to the user?
>
>Hum well, it concerns my Check_Sequence script that I posted for comments.
>The main problem for the people who use it is that it is more or less
>democratic. If you let it run as is, it will visit all directories under the
>root directory. You can exclude in advance few directories, but the problem
>remain: if a user wants to "check" only specific folder because he doesn't
>have to waste to get errors about things he's not concerned about and such,
>an easy way to handle that would be to have 3 prompts that will ask if he
>wants to visit a certain folder or not. Each prompt being for a different
>folder.
>
>Right now I use the y/n approach, it works well, but still, users are
>generally very picky about these things and would be more interested in the
>real deal.
>
>Any advice?
>
>
> > As the Aberdonian landlady said to her new lodger:
> > "If there's anything you need just ask, and I'll show you
> > how to get along without it..." :-)
>
>I like the sound of that ;-)
>
>
>Bernard
>
>_______________________________________________
>Tutor maillist  -  Tutor at python.org
>http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list