NOT ACCEPTABLE: The code works. IDK Why?
This situation is NOT ACCEPTABLE: My revised code finally works, I Don't Know [IDK] why. It's a frustrating conundrum. This is why I stopped posting recently. It was because I couldn't get a supposedly "simple" little feature of Python to work. The little feature involved "printing" a backspace character (\b). In other words, sending a command to my output console via the RICH module (and via Pycharm) and thus erasing the last character typed. For a long time I couldn't get it to work. I didn't realize the tutorials had fed me another white lie. Here's the back story: Part of the revised design for my XPANDER project is to have a double tap of the Shift key function as a Caps Lock. When the user taps a first time, an erasable alert pops in to say how many times our user has hit the Shift key. Once and it's a normal one time char shift. Twice and it's a Caps Lock. Three times and we're back to unshifted. (Or 3x could do someth...