Neutree / COMTool

Cross platform communicate assistant(Serial/network/terminal tool)( 跨平台 串口调试助手 网络调试助手 终端工具 linux windows mac Raspberry Pi )支持插件和二次开发
https://neucrack.com/p/186
GNU Lesser General Public License v3.0
1.8k stars 330 forks source link

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

Closed yergen closed 5 years ago

yergen commented 6 years ago

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

Neutree commented 6 years ago

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