wxPython - problem dynamically adding widgets?
Peter L Hansen
peter at engcorp.com
Thu Oct 7 07:01:23 EDT 2004
Fazan wrote:
> Using the sample code, I was indeed able to get this to work using a
> sizer. It turns out that my problem was a threading issue; by
> creating the widgets and adding to the sizer in different thread, the
> hanging problem went away.
Sounds dangerous... I hope you were using wx.CallAfter() to
interact with the GUI elements. I believe you *must* to
avoid potential crashes. (See
http://www.wxpython.org/docs/api/wx-module.html#CallAfter)
-Peter
More information about the Python-list
mailing list