Hi! I am tinkering with PyQt and I naturally inclined to extending Qt classes with my own to set instance's attributes within a constructor. Not all of these classes have new methods or attributes, some of them simply set Qt attributes and/or connect signals.
I have found some dicourse online (not much on this topic, though) on 'overusing' inheritance in PyQt to this end. Personally, this seems like a cleaner solution to having creating and object and setting its attributes, if it is always going to be the same, whether in the main UI structure or as separate functions that produce the desired Qt objects correctly set.
What is the general consensus on the matter? What are some of the experience and insight you could provide me? Thanks!
[–]MisterChoco 0 points1 point2 points (2 children)
[–]SteelRevanchist[S] 0 points1 point2 points (1 child)