the situation is this:
I have a thread which start a svn process (let's say an update operation).
the svn instance call the callback_get_login during the update process (not before I start the update).
So, once I started the thread, how can i do that?
I hope i was able to explain the problem ...
Robin Dunn wrote:
···
Alessandro Crugnola wrote:
I'm running pysvn in a separate thread instance.
In the svn callback__get_login (defined in the threading instance itself) I would like to show a dialog for prompt user/password.
but when i call dlg.ShowModal() I receive this error:wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in .\..\src\msw\evtloop.cpp(350): can't call Dispatch() if not running
what this mean exactly?
There is probably another assertion earlier about being unable to run an event loop on a non-main thread, but this latter assert is obscuring it.
You'll want to create and launch the dialog in the context of the gui thread. If you need the pysvn thread to wait until the dialog completes then you can do that with threading.Event or similar.
--
Alessandro Crugnola
Flash | PHP | Python Developer
+39 3939402645
+39 0236522445
--