PDA

View Full Version : PyQt5 on Mac, Virtual Com Port Example



ammannlu
31st August 2017, 23:44
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:




#!/usr/bin/python3
# -*- coding: utf-8 -*-

"""
brew install pyqt python python3 qt sip pip3
pip3 install pyqt5
pip3 install pyserial

run with python3 hw.py
"""

import sys
from PyQt5.QtWidgets import QApplication, QWidget


if __name__ == '__main__':

app = QApplication(sys.argv)

w = QWidget()
w.resize(250, 150)
w.move(300, 300)
w.setWindowTitle('Simple')
w.show()

sys.exit(app.exec_())