|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
wx.Execute和wx.Process的问题,急!用wx.Execute(self.edit_file_server.GetValue(), wx.EXEC_ASYNC, thread.processServer)启动了一个命令行程序,并且用
stream = self.processServer.GetInputStream() if stream is not None and stream.CanRead(): qslog = stream.read() 将标准输出捕获,经过测试发现输出不能及时被捕获,好像必须在缓冲满了以后才能被wxPython捕获,怎样才能使wxPython及时抓到这个命令行程序的输出?谢谢! _______________________________________________ python-chinese Post: send python-chinese@... Subscribe: send subscribe to python-chinese-request@... Unsubscribe: send unsubscribe to python-chinese-request@... Detail Info: http://python.cn/mailman/listinfo/python-chinese |
|
|
Re: wx.Execute和wx.Process的问题,急!为什么不用os.system() 或者 popen?
2008/1/25 zinicl <zinicl@...>: 用wx.Execute(self.edit_file_server.GetValue(), wx.EXEC_ASYNC, thread.processServer)启动了一个命令行程序,并且用 -- Best Regard, Tang, Jiyu (Joey) _______________________________________________ python-chinese Post: send python-chinese@... Subscribe: send subscribe to python-chinese-request@... Unsubscribe: send unsubscribe to python-chinese-request@... Detail Info: http://python.cn/mailman/listinfo/python-chinese |
|
|
Re: wx.Execute和wx.Process的问题,急!在08-1-25,Joey <tang.jiyu@...> 写道:
_______________________________________________ python-chinese Post: send python-chinese@... Subscribe: send subscribe to python-chinese-request@... Unsubscribe: send unsubscribe to python-chinese-request@... Detail Info: http://python.cn/mailman/listinfo/python-chinese |
|
|
Re: wx.Execute和wx.Process的问题,急!在08-1-25,zinicl <zinicl@...> 写道:
因为是异步,而且不想显示命令行窗口,捕获输出后,还要进一步加工才显示在界面上 _______________________________________________ python-chinese Post: send python-chinese@... Subscribe: send subscribe to python-chinese-request@... Unsubscribe: send unsubscribe to python-chinese-request@... Detail Info: http://python.cn/mailman/listinfo/python-chinese |
|
|
Re: wx.Execute和wx.Process的问题,急!嗯,终于搞定,不关wxpython的事情,在命令行程序中加上setbuf(stdout, NULL)就OK
_______________________________________________ python-chinese Post: send python-chinese@... Subscribe: send subscribe to python-chinese-request@... Unsubscribe: send unsubscribe to python-chinese-request@... Detail Info: http://python.cn/mailman/listinfo/python-chinese |
| Free Forum Powered by Nabble | Forum Help |