Discussion:
[Pyzo] problem import msvcrt in pyzo
Thib
2017-02-16 16:23:48 UTC
Permalink
Hello I can't import msvcrt in pyzo. However I can use it in python prompt. To import msvcrt in pyzo I have tried "pip install msvcrt" and "conda install msvcrt" but no way.
Please help me
thanks you
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
a***@gmail.com
2017-02-24 10:33:20 UTC
Permalink
Hi Thib,

How do you mean that you cannot import it? The msvcrt module is part of the standard library. What happens when you attempt to import it?

Regards,
Almar

From: Thib
Sent: 16 February 2017 21:32
To: Pyzo
Subject: [Pyzo] problem import msvcrt in pyzo

Hello I can't import msvcrt in pyzo. However I can use it in python prompt. To import msvcrt in pyzo I have tried "pip install msvcrt" and "conda install msvcrt" but no way.
Please help me
thanks you
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2017-02-24 12:59:34 UTC
Permalink
Hi Almar,
key = msvcrt.getch().decode()
print(key)

This method don't return me the "key" of the keyboard that I have hit.

Thanks for answering
Thib
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
a***@gmail.com
2017-02-24 13:29:43 UTC
Permalink
This might be because Pyzo is not a real terminal. Before I look into this more, can’t you use input()?


From: ***@gmail.com
Sent: 24 February 2017 13:59
To: Pyzo
Cc: ***@gmail.com
Subject: [Pyzo] Re: problem import msvcrt in pyzo

Hi Almar,
key = msvcrt.getch().decode()
print(key)

This method don't return me the "key" of the keyboard that I have hit.

Thanks for answering
Thib
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
t***@gmail.com
2017-02-24 13:33:05 UTC
Permalink
It could explain that I can use it in Python prompt. Yes I can use input() but I have to hit enter key to send my key to the computer.
Thank you
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...