Excercise: Use of Keyboard keys
• Program an application that uses the keyboard keys to trigger pop-up notes telling which
1. Use the keys module that provide the class for handing key events.
from key_codes import *
2. Use canvas type from the appuifw module as appliation body.
3. Create a loop that constanly scans a key that is pressed.
4. Exit the loop by pressing the exit key. Put therefore:
Example file: ex_use_of_keys.py
IMORTANT: when running the script, you have to press the navigation key left, right, up or down to see the result.
If you are bored:
use some of the previous spript and modify it so, that instead of using an "application menu" to trigger functions, it ues keyboard keys this time.