def reference_clickables(self):
        """Create list w/ references of clickable objects.

        The clickable objects are the "add button" plus
        each individual object stored in each item of the
        list widget.
        """
        ### create a list of clickables
        clickable_objs = []

        ### iterate over all existing objects, appending the
        ### object if it is the add button, extending the
        ### list with it otherwise

        for item in self.all_objects:

            ## append item if it is the add button
            if item is self.add_button:
                clickable_objs.append(item)

            ## if not, them it is an item in the list,
            ## containing a lot of clickable objects,
            ## so we use it to extend the clickable objs
            ## instead of appending it
            else:
                clickable_objs.extend(item)

        ### store the list of clickable objects in its
        ### own attribute
        self.clickable_objs = clickable_objs
Create list w/ references of clickable objects.

        The clickable objects are the "add button" plus
        each individual object stored in each item of the
        list widget.
        
nodezator/our3rdlibs/iterablewidget/op.py