I’m working on a Python program on a Raspberry Pi that reads a serial data packet from a radio receiver. It then reconfigures the data stream to upload to a server. The current program is running flawlessly. It reads the data, reconfigures and uploads it, then displays a rolling feed of what was sent in the terminal window. However, I can’t just leave well enough alone. I want a nice GUI to look at with pretty buttons and all. Here’s the question… The program uses print() to print to the terminal window that will not be available inside the GUI. How can I take that String of data and create a rolling flow in a window or whatever. I’m using CTkinder and Python.
I’m feeling that this would be equivalent to having an entry box where the user continuously clicks the save button. The data is saved in a variable and then the “packet” is sent to the server and also sent to a textbox or something. I want it to scroll up just like the terminal window does so that I can monitor activity.
I really haven’t tried anything yet. Not sure where to start. I did some poking around in Google to see if there was something out there, but gave up on that. Hope this wasn’t too wordy.
Bryan Hooper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.