I was looking into PyQt5 for one of my side-projects and would really like to get to learn it better. However, I wasn't sure how to correctly format the code. I've seen tutorials do class definitions for a main window and some do basic function definitions.
Which of these options tends to be favored and what does code tend to look like for that option? (i.e. for the class route are labels and other widgets added within a separate class or through a method within the main window class?, etc.)
I'm not necessarily asking for full code but just a basic structure to get started.