TomographicImaging / eqt

A number of templates and tools to develop Qt GUI's with Python effectively.
Other
2 stars 3 forks source link

Method addwidget in formdialog redundant #122

Open DanicaSTFC opened 6 months ago

DanicaSTFC commented 6 months ago

The two methods addWidget and addSpanningWidget with layout = 'vertical' are the same.

e.g. self.dialog.addWidget(QtWidgets.QPushButton("Inserted widget in vertical layout 2"), layout = 'vertical') self.dialog.addSpanningWidget(QtWidgets.QPushButton("Inserted widget in vertical layout 3"), layout = 'vertical')

The two methods addWidget with qlabel = None and and addSpanningWidget with layout = 'form' are the same.

We could think of dismissing addSpanningWidget.