阅读背景:

在线程中运行Python脚本并将std.out / std.err重定向到GUI中的wx.TextCtrl

来源:互联网 

I'm trying to write a GUI that reads in settings for a python-script, then generates the script and runs it. The script can take dozens of minutes to run so in order to not block the GUI and frustrate the user I'm running it in a separate thread. Before I did this I used a separate class to redirect the std.out and std.err of the program to a TextCtrl. This worked fine except for the GUI getting blocked during execution.I'm trying to write a GUI that reads in setting




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: