We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
In order to reduce the number of lines in macros with graphical interfaces it is better to define the graphical interface in a ui file that is loaded at runtime. Cf. https://github.com/FreeCAD/FreeCAD-macros/blob/master/FEM/FemAnimateModeShapes.FCMacro as an example.
ui
Things to do:
__Files__
import FreeCADGui as gui
ui = gui.PySideUic.loadUi('relative_path_to_ui_file')
form, widget = gui.PySideUic.loadUiType('relative_path_to_ui_file')