If you are calling wx functions from a thread separate from the main
GUI thread, you should use wx.CallAfter() in order to “post” this
function call to the main GUI thread to be executed. I had similar
problems when doing multithreading and using wx.
Ratko
···
On 1/16/06, Alessandro Crugnola wishmaster@sephiroth.it 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?
–
Alessandro Crugnola
Flash | PHP | Python Developer
http://www.blumerstudio.com
http://www.sephiroth.it
+39 3939402645
+39 0236522445
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
thank you for your answer, but my problem is that the callback_get_login function is expecting a return value and so i need to return those values returned from the dialog
Ratko Jagodic wrote:
···
If you are calling wx functions from a thread separate from the main GUI thread, you should use wx.CallAfter() in order to "post" this function call to the main GUI thread to be executed. I had similar problems when doing multithreading and using wx.
Ratko
On 1/16/06, *Alessandro Crugnola* <wishmaster@sephiroth.it > <mailto:wishmaster@sephiroth.it>> 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?
--
Alessandro Crugnola
Flash | PHP | Python Developer
http://www.blumerstudio.com
http://www.sephiroth.it
+39 3939402645
+39 0236522445
--
---------------------------------------------------------------------
To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
<mailto:wxPython-users-unsubscribe@lists.wxwidgets.org>
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
<mailto:wxPython-users-help@lists.wxwidgets.org>
--
Alessandro Crugnola
Flash | PHP | Python Developer
+39 3939402645
+39 0236522445
--