Requesting information from the user inside a GTK main loop

Posted by Victor Stanciu on Stack Overflow See other posts from Stack Overflow or by Victor Stanciu
Published on 2010-05-19T12:29:26Z Indexed on 2010/05/19 12:30 UTC
Read the original article Hit count: 296

Filed under:
|
|
|

Hello,

I am learning Python by building a simple PyGTK application that fetches data from some SVN repositories, using pysvn. The pysvn Client has a callback you can specify that it calls when Subversion needs authentication information for a repository. When that happens, I would like to open a dialog to ask the user for the credentials.

The problem is, it seems the callback is called inside the GTK main loop, so it's basically called on every tick. Is there a way to prevent this? Perhaps by opening the dialog in a new thread? But then how do I return the tuple with the user data to the callback so it can return it to the pysvn.Client?

© Stack Overflow or respective owner

Related posts about python

Related posts about pygtk