错误信息:
python: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
解决思路:
1.wxPython: UI elements must not be changed from different Python threads.
2.Do not execute code in the thread that creates or manipulates UI items. Instead you can do something like send a custom event to the UI object, or invoke a method in the UI thread using wx.CallAfter.