Re: Goto XY

2005-11-09 Thread Richie Hindle
[ale.of.ginger] > WConio.gotoxy(10,10) > error: GetConOut Failed Are you running at a Windows Command Prompt, or in an IDE? As I understand it, WConio will only work in a Windows Command Prompt. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Goto XY

2005-11-09 Thread ale . of . ginger
OK - I added the import WConio line. But when I run import WConio print "going to x10,y10..." WConio.gotoxy(10,10) print "Done" the above, I get the following error: WConio.gotoxy(10,10) error: GetConOut Failed I installed the WConio to the ../site-packages/ folder in Python24, and when it did

Re: Goto XY

2005-11-08 Thread Chris F.A. Johnson
On 2005-11-09, Grant Edwards wrote: > On 2005-11-09, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote: >> >>> Is there some command in python so that I can read a key's input and >>> then use a gotoxy() function to move the cursor on screen? e.g.: >>> (psuedo-code) >> >> You can use curses, but that m

Re: Goto XY

2005-11-08 Thread Chris F.A. Johnson
On 2005-11-09, Jean-Paul Calderone wrote: > On Tue, 8 Nov 2005 22:33:47 -0500, "Chris F.A. Johnson" <[EMAIL PROTECTED]> > wrote: >> [snip] >> >> To read a single keystroke, see Claudio Grondi's post in the >> thread "python without OO" from last January. >> >> Function and cursor keys

Re: Goto XY

2005-11-08 Thread Grant Edwards
On 2005-11-09, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote: > >> Is there some command in python so that I can read a key's input and >> then use a gotoxy() function to move the cursor on screen? e.g.: >> (psuedo-code) > > You can use curses, but that may be more trouble than it's worth. In whic

Re: Goto XY

2005-11-08 Thread Jean-Paul Calderone
On Tue, 8 Nov 2005 22:33:47 -0500, "Chris F.A. Johnson" <[EMAIL PROTECTED]> wrote: > [snip] > > To read a single keystroke, see Claudio Grondi's post in the > thread "python without OO" from last January. > > Function and cursor keys return more than a single character, so > more w

Re: Goto XY

2005-11-08 Thread Chris F.A. Johnson
On 2005-11-09, [EMAIL PROTECTED] wrote: > Is there some command in python so that I can read a key's input and > then use a gotoxy() function to move the cursor on screen? e.g.: > (psuedo-code) You can use curses, but that may be more trouble than it's worth. If you don't mind limiting y

Re: Goto XY

2005-11-08 Thread jmdeschamps
Like David said above... ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Goto XY

2005-11-08 Thread jmdeschamps
Like David said below, you need to import WConio but then repemeber when you *import someLib* you have to use qualified names such as WConio.getkey() Example: import WConio s=WConio.getkey() if s == "right": WConio.gotoxy(10,10) WConio.putch("W") s=WConio.getch() -- http://mail.pytho

Re: Goto XY

2005-11-08 Thread David Wahler
[EMAIL PROTECTED] wrote: > I assume I have to use a header somewhere (import WConio ?). If you had tried it, you would have discovered that "import WConio" is exactly what you need. Don't be afraid to experiment! -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: Goto XY

2005-11-08 Thread ale . of . ginger
Thanks -- I downloaded WConio. When I just tried it out in the IDLE, it said: NameError: name 'WConio' is not defined I assume I have to use a header somewhere (import WConio ?). Or is there something I'm missing (I downloaded the Python 2.4 (I have 2.4.2) auto installer and it ran fine...) --

Re: Goto XY

2005-11-08 Thread jmdeschamps
WConio does this for Windows. See... getkey() and gotoxy() http://newcenturycomputers.net/projects/wconio.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Goto XY

2005-11-08 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Is there some command in python so that I can read a key's input and > then use a gotoxy() function to move the cursor on screen? e.g.: > (psuedo-code) > > When the right arrow is pushed, cursor gotoxy(x+1,y) You want curses. A version is included in the standard libr

Re: Goto XY

2005-11-08 Thread David Wahler
[EMAIL PROTECTED] wrote: > Is there some command in python so that I can read a key's input and > then use a gotoxy() function to move the cursor on screen? e.g.: > (psuedo-code) > > When the right arrow is pushed, cursor gotoxy(x+1,y) > > Thanks. On Unix-like platforms, this functionality is pr

Re: Goto XY

2005-11-08 Thread Jean-Paul Calderone
On 8 Nov 2005 17:27:24 -0800, [EMAIL PROTECTED] wrote: >Is there some command in python so that I can read a key's input and >then use a gotoxy() function to move the cursor on screen? e.g.: >(psuedo-code) > >When the right arrow is pushed, cursor gotoxy(x+1,y) > You can uses curses for this, on

Goto XY

2005-11-08 Thread ale . of . ginger
Is there some command in python so that I can read a key's input and then use a gotoxy() function to move the cursor on screen? e.g.: (psuedo-code) When the right arrow is pushed, cursor gotoxy(x+1,y) Thanks. -- http://mail.python.org/mailman/listinfo/python-list