Here 2 pc's has to communicate by serial communication.
one pc transmits data where as other has to receive.

I wrote a code for displaying the received data on tkinter window. but with my code, the data is displaying for only few seconds on tkinter window. what i want to achieve here is:

if data received, display on tkinter window.
display until other data receives.
if data received in 3 min, clear the tkinter window to display this data. again this data should be on display until next data receives. This time the data receives after 10 min, then clear tkinter window to display this data.

So basically what i need is, display the data on tkinter window until other data received for displaying. I don't want the data to be displayed just for few seconds.
please help me. thanks in adavance.