UoC-Radio / py-producers-dashboard

GNU General Public License v3.0
2 stars 0 forks source link

Refactor widget classes to use Gtk.Template.Child() #4

Open ggalan87 opened 3 years ago

ggalan87 commented 3 years ago

As shown in https://belmoussaoui.com/article/5-how-to-create-a-gtk-application-using-python-part-1 widget children can be found by reflection using Gtk.Template.Child() , rather than traversal of the tree using the utility function that is used here: https://github.com/UoC-Radio/py-producers-dashboard/blob/5a36f91b38df785c9aa6dc5e10e2091f25dc75fe/dashboard/widgets/golivepage.py#L40

We should refactor the code as such.

PS: Thnx to @aggalex who mentioned such syntax in his fosscomm presentation

aggalex commented 3 years ago

I feel flattered :)