Problem in the program flow...please help?

Jerry Hill malaclypse2 at gmail.com
Wed Jan 9 15:36:35 CET 2008


On Jan 9, 2008 7:44 AM, jatin patni <jatinpatni at gmail.com> wrote:
> I have a button(GUI) which when clicked, calls a function connect( ) which
> takes around 5-20 seconds to complete(As I mentioned Earlier)
> The problem is, during this time the other part of the code is rendered
> useless, I cannot access other parts of the code, for example a cancel( )
> function to be called when cancel button is pressed, cannot be pressed until
> the previous function is completed and moreover the GUI hangs(stops
> responding).

See http://wiki.wxpython.org/LongRunningTasks for a discussion of some
of the ways you can deal with this.

-- 
Jerry



More information about the Python-list mailing list