ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
RE: [Pythoncard-users] Question about display
by Jean-Marc Matline other posts by this author
Jan 2 2003 11:10PM messages near this date
Re: [Pythoncard-users] Question about display | RE: [Pythoncard-users] Question about display
Thanks for your reply, but I think it=92s not a timing problem
The display is only refresh when we quit the function    def
on_runBtn_mouseClick(self, event):

Sorry for my bad English (I=92m French)

Regards


-----Message d'origine-----
De : Steve Holden [mailto:sholden@[...].com]
Envoy=E9 : jeudi 2 janvier 2003 23:53
=C0 : Jean-Marc Matline; Pythoncard-Users@Lists. Sourceforge. Net
Objet : Re: [Pythoncard-users] Question about display

Is it possible that "...process code..." takes such a short period of tim=
e
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 sett=
ing
of the text field's value :-)

regards
-----------------------------------------------------------------------
Steve Holden                                  http://www.holdenweb.com/
<http://www.holdenweb.com/> 
Python Web Programming                 http://pydish.holdenweb.com/pwp/
<http://pydish.holdenweb.com/pwp/> 
Bring your musical instrument to PyCon!    http://www.python.org/pycon/
-----------------------------------------------------------------------
----- Original Message -----
From: Jean-Marc Matline <mailto:jmmatline@[...].be> 
To: Pythoncard-Users@Lists. Sourceforge. Net
<mailto:Pythoncard-Users@Lists.%20Sourceforge.%20Net> 
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

class Unitest(model.Background):

    def on_openBackground(self, event):
        self.components.TextField1.text =3D =91Idle=92

    def on_runBtn_mouseClick(self, event):
        self.components.TextField1.text =3D =91Running=92
      =85.process code=85.
        self.components.TextField1.text =3D =91other status message=92
      =85.process code=85.
        self.components.TextField1.text =3D =91end of process=92

but only the last message is display =91end of process=92
How can display the intermediate messages ?

Thanks for suggestions
Attachments:
unknown1

Thread:
Jean-Marc Matline
Steve Holden
Jean-Marc Matline
Kevin Altis
Kevin Altis

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved