I am designing a windows utility software for Windows 7 coded in Python with Wxpython for GUI works.I dont want to open my software if it is already opened.
I want a function like this if user opens that software a message box is to be displayed on windows screen showing that “Your application is already running”.
Plz help.
Thanks in advance…
There’s already existing wxPython facility that implements wanted logic, called
wx.SingleInstanceChecker. Here’s and example of code (shamelessly borrowed from wxPython wiki):This cannonical example (for a matter of luck) makes exatly what you’ve asked.