Reverend Jim 4,968 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

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

tmorar commented: Thank you. It works with my Python 3.11.0b3 +0
Rohit_62 commented: Thanks a lot! I've been looking for this solution for the last 1 hour. It is working with my python version 3.10.5 as well. +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.