class reference for Gui::InputField: https://www.freecadweb.org/api/da/dfa/c ... Field.html
Is it possible to block a Gui::InputField for user input. I use them, but in a special case I would like to lock the input field for user input to be sure the user does not change a value by accident. It should work like a label in this case. Is this somehow possible?
bernd
block Gui::InputField for user input
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: block Gui::InputField for user input
Code: Select all
ui=Gui.UiLoader()
w=ui.createWidget("Gui::InputField")
w.show()
w.setReadOnly(True)