Search code examples
python-2.7tkinterkeypress

Can Tkinter keypress modules be used when in CLI


Let's say I need to make use of keypress events. The easiest solution I have so far is the Tkinter module (testing for cross platforms after the code is done).

However, I suck at programming GUI so I am starting with a CLI first. Am I able to use Tkinter.bind() in CLI mode?

I am on Python 2.7


Solution

  • No, you are not able to use Tkinter's bind method for a CLI program.