how to know if an aplication is already running?

>What you want is wx.SingleInstanceChecker.

Thanks, but this won't help either because:
- as far as I could see in the wiki (http://wiki.wxpython.org/index.cgi/OneInstanceRunning), it checks whether my application (a wx-app!) is running. The app I want to check is a non-wx application.
- in my case, there may be other instances of hh.exe running but displaying another .chm file. I am interested only in instances of hh.exe dsiplaying MyApp.chm.

Regards,

Cristina.

*From:* "C. Iacob" <ciacob@cluj.astral.ro>
*To:* wxPython-users@lists.wxwidgets.org
*Date:* Wed, 23 Nov 2005 16:47:32 +0200

> >What you want is wx.SingleInstanceChecker.

Thanks, but this won't help either because:
- as far as I could see in the wiki
(http://wiki.wxpython.org/index.cgi/OneInstanceRunning), it checks
whether my application (a wx-app!) is running. The app I want to
check is a non-wx application.
- in my case, there may be other instances of hh.exe running but
displaying another .chm file. I am interested only in instances of
hh.exe dsiplaying MyApp.chm.

Maybe you could create an instance of Popen(command) to start your
help-viewer and check first whether the instance already exists (assuming
that only your own app can start MyApp.chm). You can also use the poll()
method of Popen to check if the earlier instance has already been
terminated.

Popen is in the subprocess module of the Python 2.4 library. For earlier
versions you will have to install subprocess yourself.

David

Hi Cristina,

1) maybe you got your python software from python.org. This is always without the python windows extension. The extension is available at : http://sourceforge.net/projects/pywin32/

2) License issues:
see license.txt (= licence of pywin32 build 205) . The license has not much limitations.

3)To solve the problem I would try Tim Goldens WMI
look at:
http://tgolden.sc.sabren.com/python/wmi_cookbook.html

The side has much examples, maybe you have to investigate a bit, but I think it should not be to difficult to
merge the examples to solve your problems.

regards,
Jürgen

license.txt (1.48 KB)

Hi all,

   Wanted to try my hand at sizers but i cant figure out how the damned
things work... Any pointers to some easy to understand tutorials???

  Any help will be appreciated

Thanks a lot

<DIV>
<DIV>
<DIV><STRONG><EM><FONT color=#82393c size=3>Sameer Gurung</FONT></EM></STRONG></DIV>
<DIV><A href="mailto:g_sameer75@yahoo.com">g_sameer75@yahoo.com</A></DIV>
<DIV><A href="mailto:samgurung@rediffmail.com">samgurung@rediffmail.com</A></DIV>
<DIV> </DIV>

···

__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

I have found the Smart and Hock book, "Cross-Platform GUI Programming with
wxWidgets," explains the use of sizers, top-level windows, widget-containing
windows, and other needed information very clearly and well. Worth having.

Rich

···

On Wed, 23 Nov 2005, Sameer Gurung wrote:

  Wanted to try my hand at sizers but i cant figure out how the damned
things work... Any pointers to some easy to understand tutorials???

Any help will be appreciated

--
Richard B. Shepard, Ph.D. | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863