and display this on my GUI. But the rx_callback function cannot take 'self' as a parameter so there is no way for me display the pktno, n_rcvd, n_right on my GUI.
I tried the following without success, because the same problem persists: i simply cannot pass the callback information back up to the GUI level.
def rx_callback(ok, payload):
global n_rcvd, n_right, message
(pktno,) = struct.unpack('!H', payload[0:2]) n_rcvd += 1 if ok: n_right += 1