import sys from PyQt5.QtWidgets import QApplication import MainWnd as mw import GrpcClient as Stream if __name__=="__main__": app = QApplication(sys.argv) win = mw.MainWindow() win.show() stream=Stream.GrpcStream() stream.SetDataCallBack(win.OnCloudHandle,win.OnErrorHandle) stream.start() sys.exit(app.exec_())