I wrote code to read serial every second or so in the tkinter loop using .after(), however it either not working, or hangs up interface. Did lots of debuging, but still got stuck how to read serial in the tkinter mainloop, please help.
def list_ser():
send_com('D13_R')
varS = ArduinoSerial.readline().decode('utf-8').strip()
print(varS)
window.after(1000, list_ser)
list_ser()
window.mainloop()