Re: [Tutor] Curses Module

2016-05-16 Thread Alan Gauld via Tutor
On 15/05/16 22:45, Rosen, Brian - 2016 wrote: >...In my current assignment, I would like to import the curses module > into either Python 2.7 or Python 3.4. However, > whenever I attempt to import it, there is an Import Error Curses is only available in the standard library on Unix-like operating

Re: [Tutor] Curses Module

2016-05-16 Thread Joel Goldstick
On Sun, May 15, 2016 at 5:45 PM, Rosen, Brian - 2016 wrote: > To Whom it May Concern, > > > I am a high school student currently enrolled in an Intro to Computer > Programming Class. In my current assignment, I would like to import the > curses module into either Python 2.7 or Python 3.4. Howe

Re: [Tutor] Curses Module

2016-05-16 Thread Tim Golden
On 15/05/2016 22:45, Rosen, Brian - 2016 wrote: > To Whom it May Concern, > > > I am a high school student currently enrolled in an Intro to Computer > Programming Class. In my current assignment, I would like to import > the curses module into either Python 2.7 or Python 3.4. However, > whenever

Re: [Tutor] Curses - What does it do and why is it called this?

2009-10-22 Thread Jerry Hill
On Tue, Oct 13, 2009 at 3:11 AM, Katt wrote: > Now I understand.  Makes sense.  If "Curses" is for UNIX what would I use on > a Windows XP system using Python 2.6.2? I like the Console package: http://effbot.org/zone/console-index.htm -- Jerry ___ Tut

Re: [Tutor] Curses - What does it do and why is it called this?

2009-10-13 Thread Alan Gauld
"Katt" wrote Now I understand. Makes sense. If "Curses" is for UNIX what would I use on a Windows XP system using Python 2.6.2? It does exist for DOS too but the Python bindings don;t sem to work well. However for most simple terminal handling you can use the msvcrt module (msvcrt = Micro

Re: [Tutor] Curses - What does it do and why is it called this?

2009-10-13 Thread Katt
From: Steve Willoughby To: Katt The name is a humorous reference to the "cursor" on the screen which this package controls for the application, moving it around (and curses even Now I understand. Makes sense. If "Curses" is for UNIX what would I use on a Windows XP system using Python 2.6

Re: [Tutor] curses delwin functionality?

2008-06-15 Thread Jonathan Bohren
> I'm trying to get my hands on some curses experiences in Python. > > The examples I found don't really tell me how to get rid of subwindows and > restore the underlying window again. Is there something that replaces the > curses functionality "delwin"? > Thanks for any help! I had the same

Re: [Tutor] curses

2007-08-03 Thread alejandro varas
maybe dis is what you want to do. Ijust made some changes to the code. On 7/17/07, max baseman <[EMAIL PROTECTED]> wrote: > > hello all sorry to bother I'm working on my first curses program ive > been wanting to learn curses for a while now and now that a have a > lop top with fedora core runn

Re: [Tutor] curses

2007-07-16 Thread Tiger12506
> There IS a way to try Linux, Python, and curses WITHOUT > installing anything to the hard-drive of your MSWindowsXP > computer, and that is to download a Linux LiveCD ISO image, > and make a bootable CD from that image. Your computer > BIOS should be setup to boot from a CD. *That* is the proble

Re: [Tutor] curses

2007-07-16 Thread Luke Paireepinart
Hey bhaaluu - I've enjoyed your posts to the list so far. They're very informative and well-written. -Luke bhaaluu wrote: > On 7/16/07, Tiger12506 <[EMAIL PROTECTED]> wrote: > >> curses does not run on my Windows XP computer. >> Is this supposed to be a Linux only module? >> >> Traceback (mos

Re: [Tutor] curses

2007-07-16 Thread bhaaluu
On 7/16/07, Tiger12506 <[EMAIL PROTECTED]> wrote: > curses does not run on my Windows XP computer. > Is this supposed to be a Linux only module? > > Traceback (most recent call last): > File "", line 1, in > File "C:\Python25\lib\curses\__init__.py", line 15, in > from _curses import * >

Re: [Tutor] curses

2007-07-16 Thread Luke Paireepinart
Tino Dai wrote: > > > On 7/16/07, *Tiger12506* <[EMAIL PROTECTED] > > wrote: > > curses does not run on my Windows XP computer. > Is this supposed to be a Linux only module? > > Traceback (most recent call last): > File "", line 1, in > File "C:\P

Re: [Tutor] curses

2007-07-16 Thread Tino Dai
On 7/16/07, Tiger12506 <[EMAIL PROTECTED]> wrote: curses does not run on my Windows XP computer. Is this supposed to be a Linux only module? Traceback (most recent call last): File "", line 1, in File "C:\Python25\lib\curses\__init__.py", line 15, in from _curses import * ImportError:

Re: [Tutor] curses

2007-07-13 Thread Mike Hansen
> > ok after reading a few tutorials i think i know enough to write my > program > here it is > not commented yet though sorry: > For me, I need to put comments in while I'm coding or I'll never put them in. I _try_ to put in a doc string for every class and function/method. With Python being

Re: [Tutor] curses

2007-07-12 Thread Alan Gauld
"max baseman" <[EMAIL PROTECTED]> wrote > scr.sddch(1,0,population) # here is ware i think I'm having problems > also would like this to be centered Try this: scr.addchr(max_x/2,max_y/2, str(population)[0]) > traceback (most recent call last): > file "population.py", line 15, in > scr.addch

Re: [Tutor] curses

2007-07-12 Thread Alan Gauld
"max ." <[EMAIL PROTECTED]> wrote > hello all sorry but i just cant seem to get my head around curses I know the feeling it took me a while too. > iv read a few of the tuts out there and get what there saying > but i cant write my own Can you tell us a) What OS are you using - Curses only reall

Re: [Tutor] curses delwin functionality?

2005-12-29 Thread Bernd Prager
> Rumor has it that Bernd Prager may have mentioned these words: > > [snippety] > >> # curses.delwin(s) <-- that doesn't exist :-/ > > I've *only* done curses in python, so quite often I don't know the C > analogue, but try: > > curses.endwin() > I am looking for a functionality that destroys o

Re: [Tutor] curses delwin functionality?

2005-12-29 Thread Roger Merchberger
Rumor has it that Bernd Prager may have mentioned these words: [snippety] > # curses.delwin(s) <-- that doesn't exist :-/ I've *only* done curses in python, so quite often I don't know the C analogue, but try: curses.endwin() I'm not sure if that's exactly what your looking for, but if no

Re: [Tutor] Curses example on Linux?

2005-08-12 Thread Alan Gauld
"Hossein Movahhedian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "ky = chr(msvcrt.getch())". The other problem is that when > the program is finished the previous terminal state is not > restored (I am using xterm on Linux). OK, experimenting with the Linux stty command shows

Re: [Tutor] Curses example on Linux?

2005-08-09 Thread Alan G
> "ky = chr(msvcrt.getch())". The other problem is that when > the program is finished the previous terminal state is not > restored (I am using xterm on Linux). Yep, and that applies to my cygwin terminal too. I think there is a setty command you can issue that fixres this but since I hardly ev

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
Dear Danny Hi, Many thanks for your help and especially the references in your reply. Now the code works fine. BTW, I had to replace "ky = msvcrt.getch()" with "ky = chr(msvcrt.getch())". Regards, Hossein On Mon, 8 Aug 2005, Danny Yoo <[EMAIL PROTECTED]> wrote: > > > On Mon, 8 Aug

Re: [Tutor] Curses example on Linux?

2005-08-09 Thread Alan G
>>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'. I thought I'd fixed that fault. The sequence should be:

Re: [Tutor] Curses example on Linux?

2005-08-08 Thread Danny Yoo
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 says to replace 'msvcrt' > with 'curses.stdscr'. Hi Hossein, A