pyqt5注意事项

如果想创建一个实时改变的事件,最好额外使用一个线程独自处理此事件。

        th = threading.Thread(target=self.Display)
        th.start()

创建线程时传入函数一定要注意,函数名传入不要带括号,跟pyqt的事件绑定一样不能带括号。

posted @ 2020-02-01 18:13  you-wh  阅读(321)  评论(0编辑  收藏  举报
Fork me on GitHub