Progress Bar form WX in Child Thread of Main Python Code

Category: Python - Miscellaneous

I come across some cases, where I need to hook a progress bar from WX to my current running python project/script to indicate the current process progress.
Some how if you use MainLoop() in child thread will cause the WX session hang and EVT handle will failed.
After some study, found that WXAPP class instance and MainLoop have to same namespace.
I manage to redesign it and make it work now.
Just mail/vote me, if you feel this is useful for your project.
E-Mail : cheengshuchin@gmail.com Date: 27 February, 2012


Threads

Homepage: http://code.activestate.com/recipes/491258-progress-bar-form-wx-in-child-thread-of-main-pytho/?in=lang-python

Developer: cheeng shu chin

License: Python License

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

ShowThread() is the only function of interest, all the others are just helper functions.

developer Developer: Francisco Charrua
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


This script gives access to the Sync class.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


MQ4CPP, or "Message Queuing for C ", is an open source implementation of enterprise messaging system, also referred to as message-oriented middleware (MOM).

developer Developer: sixtyfourbit.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


A simple daemon that will constantly keep track the size of your inbox and when it exceeds a certain size, will send you a reminder email.

developer Developer: ajaymenon.k
license License: Freeware
operating systems Operating System: Windows


A decorator, that makes it easy to switch between the mainthread and background threads.

developer Developer: PRITAM K
license License: Freeware
operating systems Operating System: Windows


Progress bars are popular when trying to
show how much of a job has been completed.

developer Developer: Petr Zizka
license License: Python License
operating systems Operating System: Windows


The following class implements a reader-writer lock to use in the second readers-writers problem with python threads.

developer Developer: Mateusz Kobos
license License: Freeware
operating systems Operating System: Windows


This code implements a cache (CacheHandler) and a throttling mechanism (ThrottlingProcessor) for urllib2.

developer Developer: Staffan Malmgren
license License: Python License
operating systems Operating System: Windows


Queue subclass to simplify working with consumer threads.

developer Developer: Raymond Hettinger
license License: Python License
operating systems Operating System: Windows