Open ggalan87 opened 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
I feel flattered :)
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