[Tutor] RE: [Pythonmac-SIG] cls(),inkey(),prompt()

Schollnick, Benjamin Benjamin.Schollnick@usa.xerox.com
Tue, 05 Feb 2002 07:59:43 -0500


Certainly....

I would definitely have a use for those routines.

		- Benjamin

-----Original Message-----
From: Christopher Smith [mailto:csmith@blakeschool.org]
Sent: Tuesday, February 05, 2002 2:35 AM
To: pythonmac-sig@python.org
Cc: tutor@python.org
Subject: [Pythonmac-SIG] cls(),inkey(),prompt()


I have written 3 function for MacPython IDE (Carbon) which allow

1) clearing of the output window with the cls() command

2) polling the keyboard (like BASIC's inkey$() command)

3) prompting and viewing user input on the output window rather
than in a separate dialog box as is generated with input() and
raw_input().

All together they come to 50 lines.  If there is interest I can 
post them here or send them to interested individuals who
contact me at this address.

One thing I don't know how to do, and would appreciate some help on,
is bringing the output window to the foreground (i.e. making it
active) so the user input to the prompt can be seen in case the 
output window is initially behind the script window.

/c


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig