Hi,
I am writing a program in which I call a function to print a PDF to my
default printer using the following code snippet (calling function code not
included):
win32api.ShellExecute(0,'print',pdfPath,None,'.',0)
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.
Help in this matter would be appreciated.
Mike Driscoll
Applications Specialist
MCIS - Technology Center
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/