[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
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
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
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
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
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
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
Like David said above... ;-)
--
http://mail.python.org/mailman/listinfo/python-list
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
[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
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...)
--
WConio does this for Windows. See...
getkey() and gotoxy()
http://newcenturycomputers.net/projects/wconio.html
--
http://mail.python.org/mailman/listinfo/python-list
[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
[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
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
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
16 matches
Mail list logo