Is there a way to detect clicks or add a button to the project properties panel?
Basically, I want to add a property to a Part::FeaturePython object that is a string list. Then, I want to edit it using the spreadsheet view. I don't want to maintain a separate spreadsheet object, however. I just want generate a new one, populate it with the string list data, then save changes back to the FPO property after the user closes the spreadsheet.
So it would be nice if, when the user clicks the stringlist property in the object property view, it automatically creates the spreadsheet, populates it, and opens it for them to edit.
I can do this easily with the treeview context menu for the object (using the object's ViewProvider class), but it would be nice to be able to do the same sort of thing from the property panel as well.
Detect clicks in the object property panel
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- Joel_graff
- Veteran
- Posts: 1949
- Joined: Fri Apr 28, 2017 4:23 pm
- Contact:
Detect clicks in the object property panel
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers