On Jan 9, 2008 7:44 AM, jatin patni <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list