예 파이썬 부모 파일 :스레드로 파이썬 파일을 실행하는 방법?
class myClass(wx.Frame):
def __init__(self):
print "Prepare execute"
self.MyThread = Thread.RunBackground('./child.py' , ('--username' , 'root'));
print "Executing... Do you like this app?"
self.MyThread.start();
def onClose(self , evt):
self.MyThread.close()
self.exit();
app = MyClass()
파이썬 배경에 스크립트를 실행하는 방법을 알 필요가있다. 두 번째 프로세스가 작동하더라도 주 윈도우를 사용할 수 있다는 아이디어가 있습니다.
그럼 ... 뭐가 궁금한가요? 너 무슨 문제있어? –
필자는 Python으로 백그라운드에서 스크립트를 실행하는 방법을 알아야합니다. 두 번째 프로세스가 작동하더라도 주 윈도우를 사용할 수 있다는 아이디어가 있습니다. –