main.py 372 B

123456789101112131415161718
  1. import sys
  2. from PyQt5.QtWidgets import QApplication
  3. import MainWnd as mw
  4. import GrpcClient as Stream
  5. if __name__=="__main__":
  6. app = QApplication(sys.argv)
  7. win = mw.MainWindow()
  8. win.show()
  9. stream=Stream.GrpcStream()
  10. stream.SetDataCallBack(win.OnImagesHandle,win.OnCloudHandle,win.OnMeasureDataHandle)
  11. stream.start()
  12. sys.exit(app.exec_())