mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-13 07:17:08 +01:00
⁉️ Not sure if the generated .rst stuff is intended to have
whitespace like this in it or not, so seperating this from the other
commits, so easy to revert if necessary.
15 lines
402 B
Python
15 lines
402 B
Python
|
|
def OnInit(self):
|
|
|
|
self.name = "SingleApp-%s" % wx.GetUserId()
|
|
self.instance = wx.SingleInstanceChecker(self.name)
|
|
|
|
if self.instance.IsAnotherRunning():
|
|
wx.MessageBox("Another instance is running", "ERROR")
|
|
return False
|
|
|
|
frame = SingleAppFrame(None, "SingleApp")
|
|
frame.Show()
|
|
return True
|
|
|