e

    if {![Widget::getoption $path.$node -haspage]} { return }

    if {[string equal $data(select) $node]} { return }

    set old $data(select)

    set data(select) $node

    set window [Widget::getoption $path.$node -pagewindow]

    if {![winfo exists $window]} { _create_node $path $node }

    if {![info exists data($node,realized)]} {
        set data($node,realized) 1
        set cmd [Widget::getoption $path.$node -createcommand]
        if {[string length $cmd]} { uplevel #0 $cmd }
    }

    set cmd [Widget::getoption $path.$node -raisecommand]
    if {[string length $cmd]} { uplevel #0 $cmd }
    
    if {![string equal $data(select) $old]} {
        set oldwindow ""
        if {[string length $old]} {
            set oldwindow [Widget::getoption $path.$old -pagewindow]

            if {![string equal $window $oldwindow]} {
                grid remove [Widget::getoption $path.$old -pagewindow]
            }
        }
        if {![string equal $window $oldwindow]} {
            grid $window -in $pane2.f -sticky news
        }
    }
}


proc Preferences::open { path node {recurse 0} } {
    Widget::getVariable $path pane1
    $pane1.t opentree $node $recurse
}


proc Preferences::close { path node {recurse 0} } {
    Widget::getVariable $path pane1
    $pane1.t closetree $node $recurse
}


proc Preferences::toggle { path node } {
    Widget::getVariable $path pane1
    $pane1.t toggle $node
}


proc Preferences::selection { path args } {
    Widget::getVariable $path pane1
    return [eval $pane1.t selection $args]
}


proc Preferences::index { path node } {
    Widget::getVariable $path pane1
    return [eval $pane1.t index $node]
}


proc Preferences::edit { path args } {
    Widget::getVariable $path pane1
    return [eval $pane1.t edit $args]
}


proc Preferences::see { path node } {
    Widget::getVariable $path pane1
    return [$pane1.t see $node]
}


proc Preferences::_create_node { path node } {
    Widget::get