I need to create a list-like widget. I have looked into the Blender default panels sources, but I find them hard to dissect, and would like a more straightforward example.
Either of those two types of widgets would be fine for my purpose. Basically I need to be able to re-popoulate the list with some filenames, on a button click, and then be able to tell which item on the list is selected. So my guess is that I would need to dynamically generate a property (enum?) from which I would be able to get the current list selection?
Could anyone help me with the code (or explanation) for how would the property / panel combo look like in this case, or point me to some resources that deal with such issue.