hi

im new to qt, id like to learn pyqt5. my goal is to make an application for both macOS and Android, a simple windows with buttons that then send data to a serial com port (bluetooth).

is there anywhere a similar application?

so far im only able to run the hello world:


Qt Code:
  1. #!/usr/bin/python3
  2. # -*- coding: utf-8 -*-
  3.  
  4. """
  5. brew install pyqt python python3 qt sip pip3
  6. pip3 install pyqt5
  7. pip3 install pyserial
  8.  
  9. run with python3 hw.py
  10. """
  11.  
  12. import sys
  13. from PyQt5.QtWidgets import QApplication, QWidget
  14.  
  15.  
  16. if __name__ == '__main__':
  17.  
  18. app = QApplication(sys.argv)
  19.  
  20. w = QWidget()
  21. w.resize(250, 150)
  22. w.move(300, 300)
  23. w.setWindowTitle('Simple')
  24. w.show()
  25.  
  26. sys.exit(app.exec_())
To copy to clipboard, switch view to plain text mode