py_cui
py_cui copied to clipboard
Add additional type checking etc. for py_cui functions so errors get caught on startup
Describe the bug Currently, something like a key_command not being valid will only be caught once the command is executed.
To Reproduce Steps to reproduce the behavior:
- Create a py_cui application
- Use the
add_key_commandfunction, and add a command that takes in 1 argument - Start the UI, and press the key
- UI will crash.
Expected behavior
An error should be spawned at startup when the function is called, for example whenever add_key_command is envoked with an invalid command function
Environment:
- OS: N/A
- Terminal: N/A
- Version: N/A