Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8991035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:37:50+00:00 2026-06-15T22:37:50+00:00

I have been looking through so many questions exactly like this, but I have

  • 0

I have been looking through so many questions exactly like this, but I have yet to find an answer. I have looked through this, but it is really complicated, and I don’t know how to run my application while detecting keystrokes this way. Is there a built in python module for detecting keystrokes in a way that is threaded (sorry if that’s the wrong term) so I don’t have to keep checking in a while loop?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:37:52+00:00Added an answer on June 15, 2026 at 10:37 pm

    Yes, there is the curses module on UNIX. AFAIK there is no platform-independent module for doing what you want.

    If you want something simple and that works everywhere it’s probably better to use a GUI library such as Qt, Wx or Gtk. This does not mean that you have to write a full GUI for your program, but it isn’t too hard to use the gui’s event loop to catch keystrokes.
    For Qt you could use a QCoreApplication for example.

    There are some ways to achieve what you want without external dependencies, for example this recipe which uses msvcrt on windows and tty, termios and sys on UNIX, but, since you complained about their complexity you’re probably better with a gui toolkit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking through the questions asked on StackOverflow, but there are so
I've been looking through other questions/answers, but couldn't find anything that was helping. I
OK, I have been looking for weeks now. I have looked through Eclipse and
I know this must have been answered before here, but I simply can't find
I have been around and around with this. Have seen similar questions here but
I know a few questions have been asked like this one before, such as
I have spent many hours looking into this and I still can't find a
I have been looking for an answer to this all afternoon and i cant
I have been looking through the source code for the Flash-based Google TV example
I have been looking through code for the last 3 days, and the original

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.