#!$(GISBASE)/etc/nviz2.2/NVWISH2.2 -f
# This file allows the user to input a line for output
# to a script.  We do this in a separate file so that
# the events processed here are not sent to the script
# file.

destroy .wait_ok

global src_boot

source $src_boot/etc/nviz2.2-i18n/scripts/config.tcl
wm title . [_ "script_get_line"]

# Create a simple label and entry widget
set done -1
label .l -text [_ "Add Script Line"]
entry .e -width 80 -relief sunken
frame .f
button .f.bok -text [_ "Ok"] -command {set done 1}
button .f.bcancel -text [_ "Cancel"] -command {set done 0}
pack .f.bok .f.bcancel -side left -fill both -expand yes
pack .l .e .f -fill x
tkwait variable done

if $done {
    puts "[.e get]"
} else {
    puts "-1"
}

exit








