def __init__(self, master=None, **kw):
        "Initialize the TrimDir instance and configure for operation."
        super().__init__(master, **kw)
        # Initialize and configure this frame widget.
        self.capture_root()
        self.create_widgets()
        self.create_supports()
        self.create_bindings()
        self.configure_grid()
        self.configure_tree()
        self.configure_menu()
        # Set focus to path entry.
        self.__path.focus_set()
Initialize the TrimDir instance and configure for operation.
recipes/Python/577635_Directory_Pruner_3/recipe-577635.py