[PySide] Best way to declare MainWindow
JZA
jza at gultab.org
Sat Mar 14 03:59:28 CET 2020
I have been going through different examples, and I am unable to recognize
the best way to declare QMainWindow on Python.
I have seen examples like the following:
class MyWindow(QMainWindow):
def __init__(self, parent=None):
super(MyWindow, self).__init__(*args, **kwargs)
and others like:
class MyWidget(QtWidgets.QWidget):
def __init__(self, parent=None):
QtWidgets.QWidget.__init__(self, parent)
I know the reply would probably be depends, but wonder whats the standard
way to declare a Window and a widget like a group form on QFormLayout for
example.
--
Alexandro Colorado
GULTab.org
Linux User # 319286
Blog: http://www.alexandrocolorado.org/
<http://www.alexandrocolorado.com/blog/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20200313/2ab30904/attachment.html>
More information about the PySide
mailing list