dev/qt/ PySide6
Tutorials
Signal and Slots
button.clicked.connect(self.the_button_was_clicked)
# 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")