PyQt5 Interface Crashes When I Try to Send&Receive List From Function
Clash Royale CLAN TAG #URR8PPP PyQt5 Interface Crashes When I Try to Send&Receive List From Function I am beginner of Python. I am trying to create interface for serial communication. On my app, there are 4 variable and each one 2 bytes. And I have starter,command, source and destination bytes. So, totally 4*2+4= 12 bytes list I have. I am trying to send this list and take back. There is no console error but when I try to send list, it is crashing. ui.SendAll_Button.clicked.connect(lambda: com.send(self.newPackage)) If I send normal list, without function, it works. But newPackage is in the ValuetoHex function, it does not work. I am leaving my code here: from PyQt5 import QtCore, QtGui, QtWidgets import sys import Max2828_Window as myWindow import Max2828_WindowEdit as EditModule import serial from time import sleep import struct con = serial.Serial('COM3', 9600 , timeout = 1) error_message = [0X65, 0X72, 0X72, 0X6F, 0X72] starter_byte = 0XAA source_byte = 0X01...