>>619で
GUIまどを作ってる部分(wxPython)に
self.log = wx.TextCtrl(
self, wx.ID_ANY, size=(400,20), pos=(5,145),
style=wx.TE_READONLY)
と書き足して、
ひっかかっているsubprocess.Popenのところのstdoutを
self.pb = subprocess.Popen(
command_line, shell=True, startupinfo=si,
cwd=dpath,
stdout=self.log)
とやったら、エラーが採れました。↓
Traceback (most recent call last):
File "C:\8tousin.py", line 197, in SearchIchisan
stdout=self.log)
File "C:\Python27\lib\subprocess.py", line 382, in __init__
errread, errwrite), to_close = self._get_handles(stdin, stdout, stderr)
File "C:\Python27\lib\subprocess.py", line 531, in _get_handles
c2pwrite = msvcrt.get_osfhandle(stdout.fileno())
AttributeError: 'TextCtrl' object has no attribute 'fileno'
なお
stdout=subprocess.PIPEだとエラー出ず、しかし動かず。
どなたか解決策をご教示下さい><
GUIまどを作ってる部分(wxPython)に
self.log = wx.TextCtrl(
self, wx.ID_ANY, size=(400,20), pos=(5,145),
style=wx.TE_READONLY)
と書き足して、
ひっかかっているsubprocess.Popenのところのstdoutを
self.pb = subprocess.Popen(
command_line, shell=True, startupinfo=si,
cwd=dpath,
stdout=self.log)
とやったら、エラーが採れました。↓
Traceback (most recent call last):
File "C:\8tousin.py", line 197, in SearchIchisan
stdout=self.log)
File "C:\Python27\lib\subprocess.py", line 382, in __init__
errread, errwrite), to_close = self._get_handles(stdin, stdout, stderr)
File "C:\Python27\lib\subprocess.py", line 531, in _get_handles
c2pwrite = msvcrt.get_osfhandle(stdout.fileno())
AttributeError: 'TextCtrl' object has no attribute 'fileno'
なお
stdout=subprocess.PIPEだとエラー出ず、しかし動かず。
どなたか解決策をご教示下さい><