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.
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.
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.
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