Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问打开关闭串口处理函数为什么要创建线程? #9

Closed
yergen opened this issue Jul 30, 2018 · 1 comment
Closed

请问打开关闭串口处理函数为什么要创建线程? #9

yergen opened this issue Jul 30, 2018 · 1 comment

Comments

@yergen
Copy link

yergen commented Jul 30, 2018

def openCloseSerial(self):
t = threading.Thread(target=self.openCloseSerialProcess)???
t.setDaemon(True)
t.start()
return

@Neutree
Copy link
Owner

Neutree commented Jul 30, 2018

防止UI 线程卡死,你会看到很多软件在点击按钮后界面会卡一下,就是因为没有这样处理造成的

@Neutree Neutree closed this as completed Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants