python: Fatal IO error 11

来源:互联网 发布:剑灵女枪手捏脸数据图 编辑:程序博客网 时间:2024/06/07 06:27

错误信息:
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.

0 0
原创粉丝点击