help with SingleInstanceChecker

Hi all,

I would like to achieve the logic below, ie: if the instance of an application is running i want it to be brought to the front.

elif(condition true):
            self.instance = wx.SingleInstanceChecker(self.name)
            if self.instance.IsAnotherRunning():
                #bring the running instance application to the front
            else:
                #start a new instance of the application

Thanks
Thomas

Thomas wrote:

Hi all,

I would like to achieve the logic below, ie: if the instance of an application is running i want it to be brought to the front.

elif(condition true):
           self.instance = wx.SingleInstanceChecker(self.name)
           if self.instance.IsAnotherRunning():
               #bring the running instance application to the front
           else:
               #start a new instance of the application

You need to implement some way to communicate with the other instance of the app so you can tell it to raise itself to the front.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!