2 Replies - 1565 Views - Last Post: 23 April 2008 - 05:28 PM Rate Topic: -----

#1 Xiph  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 11
  • Joined: 09-November 06

Detect whe a key is released with python

Posted 23 April 2008 - 03:03 AM

I've been searching on google the whole morning trying to figure out how to make python detect when I release a specific key on the keyboard.

I now use getch() to detect when a key is pressed, but I also want to know when it's released.

Anyone know how to solve this?
Is This A Good Question/Topic? 0
  • +

Replies To: Detect whe a key is released with python

#2 Nova Dragoon  Icon User is offline

  • The Innocent Shall Suffer, Big Time
  • member icon

Reputation: 36
  • View blog
  • Posts: 6,169
  • Joined: 16-August 01

Re: Detect whe a key is released with python

Posted 23 April 2008 - 11:01 AM

you may want to look into a library that are made to handle such things, such as pyGame.
Was This Post Helpful? 0
  • +
  • -

#3 Xiph  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 11
  • Joined: 09-November 06

Re: Detect whe a key is released with python

Posted 23 April 2008 - 05:28 PM

View PostNova Dragoon, on 23 Apr, 2008 - 11:01 AM, said:

you may want to look into a library that are made to handle such things, such as pyGame.

Unfortunately I can't do that because I get: "No module named locals" when I try to import pygame.locals. Seems to be a bug. Well seems that I have to try a diffrent language.
Python really sucks imo :-/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1