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

[Tutor] Curses Module

2016-05-16 Thread Rosen, Brian - 2016
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 I attempt to import it, there is an Import Error that st

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

[Tutor] curses

2007-07-16 Thread max baseman
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 running in run level 3 ware im trying to program all the tools i'll use but curses will be my only gui ALAN has been helping me wi

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:

[Tutor] curses

2007-07-16 Thread Tiger12506
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: No module named _curses JS __

[Tutor] curses

2007-07-14 Thread max baseman
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 running in run level 3 ware im trying to program all the tools i'll use but curses will be my only gui ALAN has been helping me wi

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

[Tutor] curses

2007-07-12 Thread max baseman
ok after reading a few tutorials i think i know enough to write my program here it is not commented yet though sorry: import curses from time import sleep scr=vurses.initscr() population=0 seconds=0 try: scr.nodelay(1) scr.leaveok(0) max_y, max_x = scr.getmaxyx()

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

[Tutor] curses

2007-07-11 Thread max .
hello all sorry but i just cant seem to get my head around curses iv read a few of the tuts out there and get what there saying but i cant write my own if any one can point me in the right direction easer is better i only need something very simple right now just writting and refreshing thanks __

[Tutor] curses delwin() functionality

2006-03-06 Thread ZeffriN
Hello all, Im writing about a topic which was discussed previously on this mailing list but didn't seem to be answered.. Bernd Prager asked whether the curses modules in Python had functionality like that of delwin() in the C libraries.  He also supplied the below code sample to demonstrate the

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

[Tutor] curses delwin functionality?

2005-12-29 Thread Bernd Prager
Hi, 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! Here's my example: #!/usr/

[Tutor] Curses and Konsole

2005-09-14 Thread Eric Guirbal
Hello, I have been leaning Python for one week. My first project consist in doing a front end to a MySQL database using the module curses. I have a little display problem in a Konsole terminal. More precisely, when I apply the border method, between each character _ one blank space is inserted.

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

[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