I am beginning a python project that will integrate into an existing project and would like some feedback as to if I am approaching this at a high level correctly. The existing main python thread of the overarching environment is and will remain available for command line entry at all times, thus it is not periodic in nature.
I will need to continually process unsolicited messages from a server that are sent over a socket. Some of the values extracted from messages I would like to display real time in a GUI to the user, and additionally be accessible from the command line (main thread). I have just begun to learn of tkinter and would leverage it for the GUI portion.
Here are my assumptions:
1.) I will need a unique threads for both the message processor and the GUI since the main thread cannot be used, as it is reserved for command line access.
2.) I will need to access variables set by the message processor from both the Main Command line thread and the GUI thread. From what Ive read so far, I should do this in a queue to make it thread safe???
Am I on the right path from a high level perspective??