Demo : Extend Toolbar
This demo shows how to extend an existing toolbar.
Result
The demo code will add a new command into the File
toolbar that when activated, will log a debug message.
![]()
Code
Source
ββ Manipulator.py - Manipulator that modifies an existing toolbar.
ββ init_gui.py - Setup code for creating and registering stuff.
ββ Command.py - Command that logs a message on activation.
Pitfalls
Toolbars donβt have Ids, they are addressed only by their name, this is problematic because names may change and thus break your code.
Depending on the toolbar you may have to specify a different names for different versions of FreeCAD.