TomographicImaging / eqt

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

`insertWidget` method in class `UIFormWidget` and `FormDockWidget` #103

Closed DanicaSTFC closed 7 months ago

DanicaSTFC commented 11 months ago

The class FormDialog has the method insertWidget to insert a widget in a specific position in the layout. https://github.com/TomographicImaging/eqt/blob/ec2c5a11bd333452754f6931cb636bf237792649/eqt/ui/FormDialog.py#L110-L112

This method should be added to the class UIFormWidget and FormDockWidget too.

DanicaSTFC commented 10 months ago

@lauramurgatroyd

I insert widgets in the form layout and I then update the dictionary of widgets. At the moment, the items in the dictionary corresponding to the inserted widgets are added at the end of the dictionary. Do we want to reorder the dictionary or is it an unordered list for our usage?