mwganson / DynamicData

FreeCAD workbench for creating and managing custom property container objects.
GNU Lesser General Public License v2.1
41 stars 8 forks source link

combobox #54

Open lcsavas opened 3 years ago

lcsavas commented 3 years ago

very useful package, but it would be more cool if there would be possibility to define combobox type property with possible values

mwganson commented 2 years ago

You mean an enumeration? You could add this in the python console. Select the dd object, press Ctrl+Shift+P. In the console:

obj.addProperty("App::PropertyEnumeration","ddEnum")
setattr(obj,"ddEnum",[1,2,3])

I will see if I can add this functionality.