You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define a class implementing the function accept, let's call it MacroPanel
call gui.Control.showDialog(MacroPanel()) after the class definition
In MacroPanel.__init__(), load your UI, for example with self.form = gui.PySideUic.loadUi(app.getUserMacroDir(True) + '/my_macro/ui/form.ui'), and connect your callbacks
At the end of the function MacroPanel.accept, call gui.Control.closeDialog() if you want to close the dialog on acceptance
TODO, help needed: document how to activate/deactivate the OK button.