拖更声明!

最近借了一个老师的任务,用Pthon写个上位机下位机通讯软件。本来一切都好好的,今天也应该是愉快的一天!但是自从我写出来之后,就变了!!!!最后居然出来一个子线程杀不掉!???沃日!!?搞笑呢?!!这么重要的玩意!这个bug得亏是太显眼了!不然真的就是难受了啊!但是就算发现了,今天肝了一天了也没解决!还是很难受啊!!!我日啊!!话不多说了,如果这破书(没有心血浇灌,当然是破书了)还有人看的话,实在对不起,可耻的拖了!明天搞定问题一定大写一顿!对不住了!

ExceptioninthreadThread-2:

Traceback(mostrecentcalllast):

File“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py“,line916,in_bootstrap_inner

self.run()

File“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py“,line864,inrun

self._target(*self._args,**self._kwargs)

File“/Users/zhangzhaobo/CLionProjects/CCF/GUIClient.py“,line219,inreceiveMessage

self.updatethread()

File“/Users/zhangzhaobo/CLionProjects/CCF/GUIClient.py“,line165,inupdatethread

ifself.winfo_exists():

File“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py“,line985,inwinfo_exists

self.tk.call(‘winfo‘,‘exists‘,self._w))

RuntimeError:mainthreadisnotinmainloop

Exceptionignoredin:>

Traceback(mostrecentcalllast):

File“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py“,line329,in__del__

ifself._tk.getboolean(self._tk.call(“info“,“exists“,self._name)):

RuntimeError:mainthreadisnotinmainloop

Exceptionignoredin:>

Traceback(mostrecentcalllast):

File“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py“,line329,in__del__

ifself._tk.getboolean(self._tk.call(“info“,“exists“,self._name)):

RuntimeError:mainthreadisnotinmainloop

Exceptionignoredin:>

Traceback(mostrecentcalllast):

File“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py“,line329,in__del__

ifself._tk.getboolean(self._tk.call(“info“,“exists“,self._name)):

RuntimeError:mainthreadisnotinmainloop

Processfinishedwithexitcode9