Commit c6665048 authored by liyuanhong's avatar liyuanhong

修改了显示帧画面崩溃问题

parent 5348df88
......@@ -305,7 +305,7 @@ class CameraArea():
def pausePush(self,evt):
sys.stdout = self.logTextCtr
sys.stderr = self.logTextCtr
threadObj = threading.Thread(target=self.doPausePush())
threadObj = threading.Thread(target=self.doPausePush)
threadObj.start()
def doPausePush(self):
sys.stdout = self.logTextCtr
......@@ -321,7 +321,7 @@ class CameraArea():
def continuePush(self,evt):
sys.stdout = self.logTextCtr
sys.stderr = self.logTextCtr
threadObj = threading.Thread(target=self.doContinuePush())
threadObj = threading.Thread(target=self.doContinuePush)
threadObj.start()
def doContinuePush(self):
sys.stdout = self.logTextCtr
......@@ -337,7 +337,7 @@ class CameraArea():
def stopPush(self,evt):
sys.stdout = self.logTextCtr
sys.stderr = self.logTextCtr
threadObj = threading.Thread(target=self.doStopPush())
threadObj = threading.Thread(target=self.doStopPush)
threadObj.start()
def doStopPush(self):
sys.stdout = self.logTextCtr
......@@ -368,7 +368,10 @@ class CameraArea():
def showFrame(self,evt):
sys.stdout = self.logTextCtr
sys.stderr = self.logTextCtr
threadObj = threading.Thread(target=self.doShowFrame)
if self.getOsName() == "Windows":
threadObj = threading.Thread(target=self.doShowFrame)
else:
threadObj = threading.Thread(target=self.doShowFrame())
threadObj.start()
def doShowFrame(self):
self.isShowFrame = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment