Print The Data On Window Screen And Then Clear The Window Screen Before Printing Other Data.in Python
I can receive serial data and can print on the window screen(Tkinter top).when i receive serial data again, this newly received serial data should start printing on the window scr
Solution 1:
In that case, all you have to do is remove the previous content of the widget just before printing the new one. If you have an Entry widget, use the delete
method:
entry.delete(0, 'end')
# printnew serial data
Or if you have a Text widget:
text.delete(1.0, 'end')
# printnew serial data
Post a Comment for "Print The Data On Window Screen And Then Clear The Window Screen Before Printing Other Data.in Python"