mercredi 24 avril 2019

What is the recommended way to manage application state of a PyQt desktop application?

I am developing a PyQt5 based desktop application that processes real-time information. The application includes many modules(ex. Connecting to a web socket server) implemented as different classes with each module having their own internal state (such as whether the module is running, encountered an error or not, whether socket connection successful or not etc..). The application has to expose this internal state of different modules to the user through a GUI panel. Is there any recommended design pattern to manage the internal state of these different modules at one place?

I am looking at Memento Pattern and wondering if this is the right approach. Appreciate any design thoughts on this.

Aucun commentaire:

Enregistrer un commentaire