a portable text user interface ?

sebastien s.keim at laposte.net
Tue Feb 12 04:15:57 EST 2002


joost_jacob at hotmail.com (J.Jacob) wrote in message news:<13285ea2.0202080524.e2e7948 at posting.google.com>...
> We would like a -portable- module that provides 4 functions:
> setupTextUI(width, height)  # returning a text UI object, top left is
> (0,0)
> writeXY(textWindow, x, y, string)   # print string on position (x,y)
> readXY(textWindow, x, y)    # waiting for user input with cursor
> positioned on
>                          # (x,y) and returning a string from user
> clearWindow(textWindow)
(...)
> What we need is something in the Python distribution -itself- that is
> portable.

I would have a few more request for this kind of module:
readXY should have an optional argument for the maximal length of the
input

I'd really like to have a portable function getkey() able to return
the value of the key pressed or "" if no key have been pressed.



More information about the Python-list mailing list