DIsallowing multiple istances

Hi guys, how can I disallow multiple istances of my wxPython applications??
There is a way to do it using wxPython?? or I have tu use different approaches??

bye

···

--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Cerchi le recensioni su Mostre e Fiere verdi? Oppure le schede di
mantenimento delle piante da interno? Vai su Artefiori Magazine...
SFOGLIALA, NON APPASSISCE!
clicca qui
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=549&d=17-12

darkbard writes:

Hi guys, how can I disallow multiple istances of my wxPython
applications?? There is a way to do it using wxPython?? or I
have tu use different approaches??

Check the docs for wxSingleInstanceChecker()

···

--
Paul

How than can the command line argument values be
passed to the already running instance. eg an editor
(in my case spe, http://spe.pycs.net) needs to open
than another file?
Stani

···

--- Paul McNett <p@ulmcnett.com> wrote:

darkbard writes:

> Hi guys, how can I disallow multiple istances of
my wxPython
> applications?? There is a way to do it using
wxPython?? or I
> have tu use different approaches??

Check the docs for wxSingleInstanceChecker()

--
Paul

---------------------------------------------------------------------

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

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

www.stani.be wrote:

How than can the command line argument values be
passed to the already running instance. eg an editor
(in my case spe, http://spe.pycs.net) needs to open
than another file?

There is no built-in way to do it, but it's not hard to implement yourself. You just need to devise some simple form of IPC to pass a messages to the already running app.

···

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

Robin Dunn ha scritto:

There is no built-in way to do it, but it's not hard to implement yourself. You just need to devise some simple form of IPC to pass a messages to the already running app.

Can you give us an example please??

Gabriele Farina wrote:

Robin Dunn ha scritto:

There is no built-in way to do it, but it's not hard to implement yourself. You just need to devise some simple form of IPC to pass a messages to the already running app.

Can you give us an example please??

xmlrpc, named pipes, raw sockets, etc. You could even just drop a file in some predetermined directory that the sole running instance checks periodically...

···

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