Re: [Tutor] Curses example on Linux?

2005-08-09 Thread Hossein Movahhedian
Dear Alan Hi, First of all let me thank you very much for that excellent tutorial. As a Python beginner, I learned many things from that. As I have mentioned in my previous message to this list, in that example I had to replace "ky = msvcrt.getch()" with "ky = chr(msvcrt.getch())

Re: [Tutor] Curses example on Linux?

2005-08-09 Thread Hossein Movahhedian
rote: > > > On Mon, 8 Aug 2005, Hossein Movahhedian wrote: > > >I have copied the following example from "Learning to Program by Alan > > Gauld (section: Event Driven Programming)". To run it on Linux > > (Redhat 8.0; Python 2.4) the tutorial sa

[Tutor] Curses example on Linux?

2005-08-08 Thread Hossein Movahhedian
Hi All, I have copied the following example from "Learning to Program by Alan Gauld (section: Event Driven Programming)". To run it on Linux (Redhat 8.0; Python 2.4) the tutorial says to replace 'msvcrt' with 'curses.stdscr'. But there is no stdscr method in curses. In fact with 'import

[Tutor] Pager in Python?

2005-07-18 Thread Hossein Movahhedian
Hi All, Is there a command like more(1) or less(1) in python to display the output of a command (e.g. dir()) one page at a time? Thanks Hossein ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor