How do I start a .chm help file from my app?

Hi,

simple question. I have created a chm help file that I want
to start when the >help< button of my menubar is pressed.
(Windows)
How? I have tried spawn.. and execv.. without success.

thanks
marcus

"Marcus Stojek" <stojek@part-gmbh.de> writes:

Hi,

simple question. I have created a chm help file that I want
to start when the >help< button of my menubar is pressed.
(Windows)
How? I have tried spawn.. and execv.. without success.

os.startfile("myhelp.chm")

Thomas

In spe (http://spe.pycs.net) I do it with the
webbrowser module...

import sys,webbrowser
if sys.platform='win32':
  webbrowser.open('help.chm')
else:
  webbrowser.open('help.html')

Stani

···

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

I am writing a small "puzzle/strategy game". When it button is pressed
it runs the human players move, and then checks for AI's and runs them.
If I run a game with all AI's none of my calls to SetLabel ever take
effect. I believe it's because those are happening from a routine that
never exists that is called from within the event.

How do I reseove this. While it's unlikly someone will just play all
AI's it is useful for debugging ourposes.

Mike Wagman wrote:

I am writing a small "puzzle/strategy game". When it button is pressed
it runs the human players move, and then checks for AI's and runs them.
If I run a game with all AI's none of my calls to SetLabel ever take
effect. I believe it's because those are happening from a routine that
never exists that is called from within the event.

How do I reseove this. While it's unlikly someone will just play all
AI's it is useful for debugging ourposes.

You have to allow program control to return from the event handlers to the MainLoop in order for screen updates and other things to occur. Your AI loop probably needs to be unrolled and invoked one step at a time from a timer or perhaps an EVT_IDLE handler. Each step should do its thing and then return.

···

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

Need to figure out one more thing, how do I force an evt_idle event. But
thanks EVT_Idle seems to work well. However when the mouse is not moving
I am not calling the routine.

I am using this from a notebook window so I don't know if that is part
of the issue. It looks very promising at this point.
  Thanks
  Mike

···

On Fri, 2003-10-10 at 19:37, Robin Dunn wrote:

Mike Wagman wrote:
> I am writing a small "puzzle/strategy game". When it button is pressed
> it runs the human players move, and then checks for AI's and runs them.
> If I run a game with all AI's none of my calls to SetLabel ever take
> effect. I believe it's because those are happening from a routine that
> never exists that is called from within the event.
>
> How do I reseove this. While it's unlikly someone will just play all
> AI's it is useful for debugging ourposes.
>

You have to allow program control to return from the event handlers to
the MainLoop in order for screen updates and other things to occur.
Your AI loop probably needs to be unrolled and invoked one step at a
time from a timer or perhaps an EVT_IDLE handler. Each step should do
its thing and then return.

Hi folks. I need your help.

I maintain an experimental modded version of the BitTorrent reference client at http://bt.degreez.net . For the past few weeks I've been chasing a bug that seems to be corrupting data downloaded by the client. It is very elusive, only striking certain Windows-based machines (and not me directly, which certainly doesn't help my debugging efforts), and doesn't seem to be related to the operating system version (98, XP, etc) or disk format. One user who's been plagued by the problem recently reported an application error; ' The instruction at "0x1e041568" referenced memory at "0x05000054". The memory could not be "read". ' I suspect a problem with certain system DLLs being accessed via wxWindows.

I would appreciate if:

1. Someone could get me a list of the system DLLs wxWindows accesses in its performance, so I can gather information about them and try to correlate them with users with the problem.

2. Someone would go over my source code and make sure I'm not doing something that's causing the window-building to go awry. The source is available at http://home.elp.rr.com/tur/BitTorrent-experimental-S-5.8.5.zip or http://home.elp.rr.com/tur/BitTorrent-experimental-S-5.8.5.tar.gz and the only file you'll need to audit is "btdownloadgui.py".

To anyone willing to help me, thanks in advance. :slight_smile:

Mike Wagman wrote:

Need to figure out one more thing, how do I force an evt_idle event. But
thanks EVT_Idle seems to work well. However when the mouse is not moving
I am not calling the routine.

wxWakeUpIdle()

···

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

John Hoffman wrote:

Hi folks. I need your help.

I maintain an experimental modded version of the BitTorrent reference client at http://bt.degreez.net . For the past few weeks I've been chasing a bug that seems to be corrupting data downloaded by the client. It is very elusive, only striking certain Windows-based machines (and not me directly, which certainly doesn't help my debugging efforts), and doesn't seem to be related to the operating system version (98, XP, etc) or disk format. One user who's been plagued by the problem recently reported an application error; ' The instruction at "0x1e041568" referenced memory at "0x05000054". The memory could not be "read". ' I suspect a problem with certain system DLLs being accessed via wxWindows.

I would appreciate if:

1. Someone could get me a list of the system DLLs wxWindows accesses in its performance, so I can gather information about them and try to correlate them with users with the problem.

Get a copy of DependencyWalker from http://www.dependencywalker.com/ and run it on wxc.pyd.

···

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

I would appreciate if:

1. Someone could get me a list of the system DLLs wxWindows accesses in its performance, so I can gather information about them and try to correlate them with users with the problem.

Get a copy of DependencyWalker from http://www.dependencywalker.com/ and run it on wxc.pyd.

GREAT tip. Thanks!