dev/qt/ PySide6


Tutorials

PythonGuisTutorials PySideExamples1 QtPainting PythonQtOpenGL

Signal and Slots

button.clicked.connect(self.the_button_was_clicked)
from PySide6.QtNetwork import QUdpSocket, QHostAddress

# udp enabled widget
class Widget(QWidget):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.udpSocket = QUdpSocket()
        self.udpSocket.readyRead.connect(self.handle)
        self.udpSocket.bind(QHostAddress.Any,3000)
    def handle(self):
        print("hello")