I am trying to display real-time text in Tkinter after a Button command calls a function. The function should display a “timestamp” when PycURL receives “HTTP/1.1 200 OK”. The function POSTs energy data to a server every 2 minutes.
Pseudocode, a basic example, and/or general discussion should get me headed in the right direction. I have got the energy data POSTing OK. Now I need to get the GUI working.
Thanks – Brad
Found the answer in the book “Programming Python” by Mark Lutz. The following code is adapted from the book using info from Threads and Queues!
In another file called poster
This worked.