This necessitates some rather clunky inclusions at the top of the file: try:įrom PyQt4.QtGui import QTextEdit, QWidget, QApplication, QVBoxLayoutįrom PyQt5.QtWidgets import QTextEdit, QWidget, QApplication, QVBoxLayout My code is compatible with Python 2.7 and 3.x, PyQt v4 and v5, running on Windows or Linux. It won’t win any awards for style, but could come in handy next time you encounter an obscure serial protocol. The following blog describes a simple Windows & Linux serial terminal, that can be adapted to handle special protocols it also demonstrates the creation of Python threads, and can serve as a basis for other multi-threaded applications. I do a lot of work with serial comms TeraTerm is an excellent serial terminal, but sometimes a customised application is required, for example when dealing with binary data. A simple demonstration of threading in PyQt
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |