[Tutor] Few simple question.
Walter Moreira
wall@adinet.com.uy
Thu, 3 May 2001 23:41:50 -0300
On Thu, May 03, 2001 at 11:07:54AM +0800, Mr. Razak wrote:
>
> 1). I want to know how to change colour, i mean how to used colour in python language.
>
> 2). How to used coordinate system, or may be there is a module i can used to help me. For example on the computer screen at a location row=5, column 35, I want to print 'Hello world'. How to do that.
>
> 3). How to create box and how place it on the computer screen on the desirerable location.
You can take a look at the Demo/curses directory of the Python
distribution. There are examples for using color and boxes and printing in
coordinates.
You can use the curses module just with
>>> import curses
But, if you are looking for graphical windows, then look in Doc/tkinter. I
think curses is easier.
Hope it helps:
-- Walter
--
--------------
Walter Moreira <> Centro de Matematica <> Universidad de la Republica
email: walterm@cmat.edu.uy <> HomePage: http://www.cmat.edu.uy/~walterm
+-----------------------------------------------------
/OD\_ | Contrary to popular belief, Unix is user friendly.
O o . |_o_o_) | It just happens to be very selective about who its
| friends are. -- Kyle Hearn
--+--