Mar-04-2020, 01:33 PM
Thanks for continue support
Yes it is working with text but the data coming from serial port does not update the widgets
please see the modified program
Yes it is working with text but the data coming from serial port does not update the widgets
please see the modified program
import serial from tkinter import * from time import sleep # import matplotlib.pyplot as plt # from drawnow import * values = [] root = Tk() root.geometry('600x200') # plt.ion() cnt=0 var = StringVar() serialArduino = serial.Serial('COM3',baudrate = 9600, timeout = 1) root.title("D Cube Serial Read") e = Entry(root,width = 35, textvariable = var ,borderwidth = 5) e.grid(row = 0, column = 0, columnspan = 3,padx = 10,pady = 10) while True: valueRead = serialArduino.readline() print(valueRead); var.set(valueRead) #var.set('My Var') root.mainloop()