CapitaineJSparrow / steam-repo-manager

GUI interface on top of https://steamdeckrepo.com/ to install boot videos on your steam deck
GNU General Public License v3.0
69 stars 4 forks source link

[Technical] Use events for UI <> logic interactions #21

Open CapitaineJSparrow opened 1 year ago

CapitaineJSparrow commented 1 year ago

Atm the process to handle the logic between front and backend is yolo. We are just calling services from ui widget, leading to issues because we are stuck between the ui structure and backend data, and calling logic from sub components isn't ideal nor readable / debuggable. Another approach would be to use events. Unfurtunately the notify package used in most gnome apps is Linux only and I want to keep cross platform compatibility. A simple solution would be to create our own event system which is very simple to do

https://dev.to/kuba_szw/build-your-own-event-system-in-python-5hk6