This question already has an answer here:
I want to create an Add-on with Python.
It should contain an operator that shows several string entries. Each of them can be selected/deselected individually. This is pretty much what happens with Properties/Texture:
I do not need the icon, but the string and the checkbox. I already have a list of strings to be presented to the user.
Similar controls are used for vertex groups, shape keys, uvmaps.
How can I create my own one?
the modification to the proposed solution is this:
class ULLibraries(UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): layout.prop(item, "name", text="", emboss=False) layout.prop(item, "enabled", text="", index=index) def invoke(self, context, event): pass
with following data:
class CustomProp(bpy.types.PropertyGroup): name = StringProperty() enabled = BoolProperty()