Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Very newbie question how to __init__ classes the right way
MSDavid last edited by
I'm still learning GUI Programming with Python and I found that different authors suggest different ways to initialize classes.
For instance, Venkateshwaran Loganathan in his book "PySide GUI Application Development" always suggests the following form:
while Bogdan Milanowich in his "video tutorials":https://www.youtube.com/watch?v=0vvb7Kv59qA&index=3&list=PLe2ARo5vBp8A6XZbFYqV2FhWsSP0CnGeL, suggests the following:
def init(self, parent=None)
What are the differences?
Which is the best way?
P.S. Sorry for bringing down the quality of discussions here ;-) with my questions