Passing params to single instance of wxApp
Sam
shendley at email.unc.edu
Tue Mar 25 18:56:21 EST 2003
tebeka at cs.bgu.ac.il (Miki Tebeka) wrote in message news:<33803989.0303250410.35e12368 at posting.google.com>...
> Hello,
>
> > I want my app to only allow one instance, the problem is that it is
> > associated with a file type so when another of that file type is
> > opened I end up with two instances. I used the wxSingleInstanceChecker
> > to stop this from occuring but I really want to pass the params (i.e.
> > new filename) to the running app. Any ideas?
> I'd use some sort of RPC to notify the other application (TCP/IP with
> known port?) just before closing the new one.
> Ugly but should work.
>
> HTH.
> Miki
This sounds like it would work but there has to be a better, simpler
way to do this. THis is going to be a last resort. Anyone got
anything better?
Sam
More information about the Python-list
mailing list