Python 3.10 and wxPython compatibility

I discovered, after upgrading to Python 3.10, that wxPython no longer worked. Fortunately, a kind soul at wxpython.org suggested I try installing a snapshot build of wxpython via the command

pip install -U --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython

So far my existing wxPython scripts run just fine. If you are wondering why the rush to go to python 3.10, the newest version finally introduces a case clause and improvements to error messages. More details can be found here

Note that like everything else in python, the patterns allowed in match-case can be abused to make the code unreadable. A tutorial on patterns can be found here