I want to make a python script that allows me to change my workspace with a keypress, and I have a wacom tablet with buttons on it that I can map keys to it. I was thinking about mapping unused function keys to my tablet and having my python script listen for the key and change my workspace accordingly
(for example, the 3rd button on my tablet triggers f5 which a python script would listen for that and change my workspace to shaders)
Is there a specific command for changing the workspace in Python?
(Note: I am a noob at python, I use Lua more)