Re: [Pythoncard-users] Question about display
by Steve Holden other posts by this author
Jan 2 2003 10:53PM messages near this date
[Pythoncard-users] Question about display
|
RE: [Pythoncard-users] Question about display
Is it possible that "...process code..." takes such a short period of =
time that you don't see the text because it isn't displayed for long =
enough?
In that case a "fix" might be to include a time.sleep(5) before each =
setting of the text field's value :-)
regards
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
Bring your musical instrument to PyCon! http://www.python.org/pycon/
-----------------------------------------------------------------------
----- Original Message -----=20
From: Jean-Marc Matline=20
To: Pythoncard-Users@Lists. Sourceforge. Net=20
Sent: Thursday, January 02, 2003 5:49 PM
Subject: [Pythoncard-users] Question about display
I want to display a status message (textField1) to show the progress =
of my process.
The process is initiated on runBtn_mouseClick
=20
class Unitest(model.Background):
=20
def on_openBackground(self, event):
self.components.TextField1.text =3D 'Idle'
=20
def on_runBtn_mouseClick(self, event):
self.components.TextField1.text =3D 'Running'
..process code..
self.components.TextField1.text =3D 'other status message'
..process code..
self.components.TextField1.text =3D 'end of process'
=20
but only the last message is display 'end of process'
How can display the intermediate messages ?
=20
Thanks for suggestions
Attachments:
unknown1
Thread:
Jean-Marc Matline
Steve Holden
Jean-Marc Matline
Kevin Altis
Kevin Altis
|