Auto-pulsing wxProgressDialog?

Rooney, Mike (ext. 324) mxr at qvii.com
Wed Jan 3 06:50:00 PST 2007


Hello everyone. I am looking for a progress dialog that basically just moves along and starts over again until it is told to stop or destroy. I have seen these in Windows and other places all the time however not in wx. Normally I hate progress dialogs that don't actually show progress, however for our current application a call is made to a module that could take awhile and we have no way of getting actual progress, but I want the user to know the program hasn't frozen.

I have tried using a wxTimer which calls Pulse() on the ProgressDialog every 100 milliseconds, however that didn't do anything while the function call was running, defeating the entire purpose. I also tried making a little class that Pulses the dialog and running that in a thread, which also didn't work. Maybe the function call is taking up all the CPU and that is why the timer and thread didn't work? I once had the function call crash and then the dialog pulsed along as I would expect, so that seems to tell me what I am doing is right but it isn't getting enough priority. This is why I thought if there was a built-in way to do this in wx it might solve the problem.

Does anyone have any ideas as to how to solve this issue?

Thanks in advance,
Mike




More information about the wxpython-users mailing list