def _refresh_items(self):
        items = []
        condition = self.condition
        cdata = self._cdata

        if condition and len(cdata) > 0:
            for node, f_locals in cdata:
                new_locals = f_locals.copy()
                for child_node in node.child_defs:
                    child = child_node.typeclass()
                    child_node.populate(child, child_node, new_locals)
                    items.append(child)

        for old in self.items:
            if not old.is_destroyed:
                old.destroy()
        if len(items) > 0:
            self.parent.insert_children(self, items)
        self.items = items
Sets the theme, image, offset and optional checkbox state to use for
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/core/conditional.py/Conditional._refresh_items--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/wx/themed_checkbox_editor.py/_ThemedCheckboxEditor._set_hover_theme