[pygtk] gtk.Dialog problems

John Finlay finlay at moeraki.com
Mon Apr 3 12:13:40 WST 2006


Sean Richards wrote:
> Hi,
>
> Have an application that launches a gtk.dialog, gets some user input and then runs a functionthat that can take some time to complete. The dialog remains visible and blocks until the function has completed processing. I want it to disappear once I have finished with it. How do I do this?
> Have looked at the FAQ and thought that "10.17. How do I run a dialog without running another main loop?" might help, but the behaviour remains the same. Have attached a very cutdown example that illustrates the behaviour.
>
>   
Your app will have the problem that it will not be responsive if your 
function runs for a long time. Try looking at the following FAQ entries:

http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq03.007.htp 
<http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq03.007.htp>

http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq23.020.htp 
<http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq23.020.htp>

for some ways to deal with the problem.

John


More information about the pygtk mailing list