Mar-23-2021, 02:56 PM
(This post was last modified: Mar-23-2021, 02:56 PM by deanhystad.)
I would do things in reverse. Use the dictionary to automatically build the GUI. Or maybe a list to build them both? I would make a list of fields automatically extracted from the word documents and use that to automatically build the dictionary and GUI program
Widgets are not iterable, but you can ask for the child widgets of a widget, and that gives you an iterator. I posted this a while back as a way to clear all the line edit widgets in a form.
Widgets are not iterable, but you can ask for the child widgets of a widget, and that gives you an iterator. I posted this a while back as a way to clear all the line edit widgets in a form.
for w in form.findChildren(QLineEdit): w.clear()