I’ve been using Python 2.7 and wxPython 2.8 for many years and today I started work on migrating to recent versions of these programs. I began by installing Python 3.6 and, to get my old wxPython apps working, I added to each of them as the first line “#! /usr/bin/python2.7”. My apps now all work correctly, except for one annoying little problem.
My OS is Windows 10 and I have Windows shortcuts to access my applications, e.g., “ctrl-alt-o” is the shortcut for one app. Previously, if the relevant application was already open, pressing the shortcut keys would bring it to the foreground and give it the focus. But now, what happens is that a new instance of the application opens. I haven’t changed anything except to install Python 3 and add that shebang line. Can somebody tell me what’s caused this change and, ideally, if there’s a way to revert to the previous behavior (only one instance of the application runs)?
I searched the web for an answer to this question but all that I found was people talking about sophisticated programming strategies to run only a single instance. I think the solution to my problem should be simpler than that, since things previously worked the way I wanted them to and I haven’t changed the apps, other than to add the shebang line so they use Python 2.7.
Patrick