def _set_child_icons(self, c, d):
        """Set the appropriate icons for a given tree child

        c
            The child we are updating

        d
            The data associated with the child
        """
        if isinstance(d, (dict, UserDict.UserDict, OOBTree)):
            self.db_layout_tree.SetItemImage(c,
                                             self.folder_idx,
                                             wx.TreeItemIcon_Normal)
            self.db_layout_tree.SetItemImage(c,
                                             self.folder_open_idx,
                                             wx.TreeItemIcon_Expanded)
        else:
            self.db_layout_tree.SetItemImage(c, self.file_idx,
                                                 wx.TreeItemIcon_Normal)
Set the appropriate icons for a given tree child

        c
            The child we are updating

        d
            The data associated with the child
        
recipes/Python/409012_A_Simple_ZODB_viewer_in_wxPython/recipe-409012.py