## Tutorials PythonGuisTutorials PySideExamples1 QtPainting PyQtWidgets1 PythonQtOpenGL PySide6Network1 ## Signal and Slots ```python button.clicked.connect(self.the_button_was_clicked) ``` ```python 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") ```