key detect

Discussion in 'Python' started by Alex Taslab, Apr 25, 2007.

  1. Alex Taslab

    Alex Taslab Guest

    Hi everybody, does anyone know how to detect a key press from a
    keyboard. Well I do know how to do that, but i need to detect just one
    press and ignore the others. I mean, my program checks an input from the
    outside (a sensor) and i emulate that signal as a keypress, but the
    sensor doesn`t send the signal as a unique pulse y just keeps sending
    signal during some seconds, so that is like to be pressing one key for a
    period of time. How can i take that first press of a key and ignore the
    others? I am using pygtk. thanks everybody!
     
    Alex Taslab, Apr 25, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shanknbake
    Replies:
    3
    Views:
    13,668
    Roedy Green
    Oct 9, 2005
  2. Si
    Replies:
    3
    Views:
    906
    Andrey Kuznetsov
    Feb 28, 2006
  3. Dan Pop

    Re: Can I detect "enter" key using scanf?

    Dan Pop, Aug 6, 2003, in forum: C Programming
    Replies:
    0
    Views:
    2,189
    Dan Pop
    Aug 6, 2003
  4. Rune
    Replies:
    6
    Views:
    1,580
    Richie Hindle
    Jan 29, 2004
  5. Jia,Lu

    [Linux] Detect a key press

    Jia,Lu, Oct 6, 2006, in forum: Python
    Replies:
    3
    Views:
    1,162
    hanumizzle
    Oct 7, 2006
  6. Alex Taslab

    key detect

    Alex Taslab, Apr 25, 2007, in forum: Python
    Replies:
    1
    Views:
    407
    hlubenow
    Apr 26, 2007
  7. M P
    Replies:
    1
    Views:
    833
  8. Thomas Wilson
    Replies:
    3
    Views:
    239
    Thomas Wilson
    Apr 14, 2010
Loading...