Andrea,
Thanks for the fast reply. I like your progress bar implementation, but I
don't see how it can be used with a method call of indeterminate length.
When I call my print function, it doesn't really return anything. Even if it
did, I can't put it in a loop and have it spew out lots of pages. I will
include the print function so that you can see what it's doing and maybe you
can give me another hint. I apologize for being so dense.
I tried setting up a loop, but I don't know what to do to make it break out.
So I tried putting a loop before I called my print function and then another
short loop at the end that just cycled through 20 times a piece and updated
the progress dialog appropriately.
Thanks for your help.
Mike
ยทยทยท
-----Original Message-----
From: Andrea Gavana [mailto:andrea.gavana@gmail.com]
Sent: Friday, January 26, 2007 3:37 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Wx.ProgressDialog problems
Hi Mike,
That works fine, but the time it takes to prints varies and it feels
like my program "hangs". I would like to put a wx.ProgressDialog
widget in that will monitor the function and give the user something
to look at other than a frozen GUI. All the examples I have found only
show hard coded time limits and nothing on how to make the dialog
refer to a function call or a child process/thread.
For non-hard coded limit, see these 2:
1) wx.ProgressDialog.Pulse()
"
Just like Update but makes the gauge control run in indeterminate mode (see
wxGauge documentation), sets the remaining and the estimated time labels (if
present) to Unknown and moves the progress bar a bit to indicate that some
progress was done "
2) http://xoomer.alice.it/infinity77/eng/freeware.html#pyprogress
They are similar in many respects.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/