I'd like to use the command manager addCommand() to produce a checkable toolbar button in python.
Is there any documentation to do it automagically passing some extra arguments to addCommand?
Edit: something like Std_TreeSyncView
Command type in python
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Command type in python
follow my experiments on BIM modelling for architecture design
Re: Command type in python
AFAIK the Draft snap tools do what you look for and they are done in Python AFAIK.
Re: Command type in python
The Draft toolbars are kinda "non standard"ncause they are added and controller directly by Draft wb.
I was asking myself if there Is an option to produce a checkable QtAction when adding a command, to reduce code duplication...
I was asking myself if there Is an option to produce a checkable QtAction when adding a command, to reduce code duplication...
follow my experiments on BIM modelling for architecture design