Loading data into single instance of an MDI app on double-click

Yeah I think I'll give the xmlrpc method a try as I have an example to
work from and I'm still learning. Thanks for the tip on
wx.SingleInstanceChecker. :slight_smile: What other methods could be used to
pass the file to the existing app? - Just so I can do some reading up
on it.

Thanks again

Ed

路路路

On Tue, 14 Dec 2004 10:41:15 -0800, Robin Dunn <robin@alldunn.com> wrote:

Ed wrote:
> Hi,
>
> I'm coding a small MDI application for use in a win32 environment
> which will open the documents it is associated with a double-click.
> What I'm trying to work out the best way of loading a second file into
> a document window of the app if it already has another file loaded.
> e.g. a file is already loaded in the app and another is loaded by
> double clicking on it without creating a second instance of the
> application. I've seen an XMLRPC server used to do this before but I
> wanted to see if there was an easier way of doing it... Oh and I'm
> going to be using py2exe to produce a standalone version of the app.

What ever form of IPC you like best would be fine, there are probably
several ways to do it. All you really need is a way to test if the app
is already running (wx.SingleInstanceChecker can do this) and a way to
pass the new file to the existing app, (xmlrpc is an easy way to do it
but anything will work.)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org