(Dec-23-2019, 04:07 PM)Denni Wrote: # Note Never Import more than you need -- aka importing entire libraries is lazy codingThat is arguable statement at best.
It doesn't matter if you do
from PyQt import QtWidgetsor e.g.
from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayoutin any case the whole
PyQt5.QtWidgets
is importedthe difference is what names are visible/accessible to you after the import and how you reference them
It's more or less a matter of preference and many prefer full references. It's more clear what comes from where.
Your statement about NOT using
super()
to initialize parent is also arguable.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs