How to create an preference editor tab

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

How to create an preference editor tab

Post by microelly2 »

Is it possible to write my own preference editor to for my own workbench in python like those for draft or openscad?
I have looked for an example (but still not found).
thank's for a hint.
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: How to create an preference editor tab

Post by shoogen »

please have a look at the .ui files in the resource directories of those modules.
https://github.com/FreeCAD/FreeCAD_sf_m ... sources/ui
They are only present in the repository and not in the binary distribution of FreeCAD.You can view them in the QtDesigner, but i prefer to edit them in a text editor.
Post Reply