[PYTHONMAC-SIG] time.sleep() not multifinder friendly ?
Steven D. Majewski
sdm7g@virginia.edu
Thu, 21 Nov 1996 21:18:38 -0500 (EST)
I haven't deciphered the sources yet, but from it's behavior,
I suspect that time.sleep() in MacPython is not very multi-finder
friendly.
I added some sleep calls in a loop in a program I was testing so
that I could slow it down enough to see what was happening, and I
was unable to switch to another app while this was running.
A sleep() that gave back some cycles by calling DoIdle() would
be much more usable.
BTW:
I made another change do EasyDialogs:
ProgressBar.label( text ) is now a method, instead of a variable.
bar._label is the instance variable that holds the text.
A call to label() changes the text in the dialog window.
EasyDialogs.test() was also modified to demonstrate this
behaviour by cycling thru a list of progress messages while
incrementing the progress bar.
[ I'm using this in my new drag&drop file util to display
the file names as they are processed. ]
I'll wait a bit before posting yet another version to wait and see
if I find the need for any other fixes or additions.
---| Steven D. Majewski (804-982-0831) <sdm7g@Virginia.EDU> |---
---| Department of Molecular Physiology and Biological Physics |---
---| University of Virginia Health Sciences Center |---
---| P.O. Box 10011 Charlottesville, VA 22906-0011 |---
By doing just a little every day, you can gradually
let the task completely overwhelm you.
=================
PYTHONMAC-SIG - SIG on Python for the Apple Macintosh
send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
=================