Разделить и передать значения в label

При нажатии на кнопку self.tempup.clicked.connect(self.qutemp) в консоли получаем temperature:16. Эта температура должна выводится на label, но я не знаю как разделить temperature или другие входные значения - их много.

from PyQt5 import uic, QtWidgets
Form, _ = uic.loadUiType("inter01.ui")
import socket
import threading
client = socket.socket(
    socket .AF_INET,
    socket.SOCK_STREAM,
)
client.connect(
    ("192.168.0.163", 1)
)
print("conected")
sock = socket.socket()
def listen_server():
    while True:
        data = client.recv(1024).decode()
        if int(data) > 0 :
            print("temp my")

        print(data)
lis_thread =  threading.Thread(target=listen_server)
lis_thread.start()
class Ui(QtWidgets.QDialog, Form):

        def __init__(self):
            super(Ui, self).__init__()
            self.setupUi(self)
            self.dow1.clicked.connect(self.onDL)
            self.dow0.clicked.connect(self.offDL)
            self.up1.clicked.connect(self.onUL)
            self.up0.clicked.connect(self.offUL)
            self.tempup.clicked.connect(self.qutemp)

        def qutemp(self):
            client.send('temp'.encode())
        def onDL(self):
            client.send('down1'.encode())
        def offDL(self):
            client.send('down0'.encode())
        def onUL(self):
            client.send('up1'.encode())
        def offUL(self):
            client.send('up0'.encode())



if __name__ == "__main__":
    import sys

    app = QtWidgets.QApplication(sys.argv)
    w = Ui()
    w.show()  # show window
    sys.exit(app.exec_())

Ответы (0 шт):