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 >> python-Tutor
python-Tutor
[Tutor] 1.5.2 threading, wxDialog and wxstaticText
by other posts by this author
Aug 10 2001 3:09PM messages near this date
Re: [Tutor] Tesla Coil's more Useless than ever | [Tutor] Help with vars()
Hi -

I'm new to python. 

Using threads and wxDialog (modeless) with wxStaticText.

When using threads(derived Threading class) to run a function that 
instantiates a class instance ........
the wxStaticText object fails to initialise itself in the dialog until all 
prior threads are run.

I've tried using sleep, wxSleep(no good without the wxApp derived class 
instance - i've found) but even sleep does not allow the wxStaticText intial 
message to be displayed in the dialog - only does once all other threads have 
run.

So, todate - using wxDialog with wxStaticText and then periodic ...SetLabel() 
does not work using threads - even the initial text output defined prior to 
...Show(true) does not display until all 'controlled' threads have run.

A nice solution would be a modeless frame or panel.

The probable solution is to upgrade python but this is not an option.

So, does anyone know how I can build a wxGauge(progress), wxStaticText stuff 
in a wxDialog with real time updates using threads?

Cheers
Mark


_______________________________________________
Tutor maillist  -  Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor

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