#!nviz -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/scripts/config.tcl # Create a simple label and entry widget set done -1 label .l -text [G_msg "Add Script Line"] entry .e -width 80 -relief sunken frame .f button .f.bok -text [G_msg "Ok"] -command {set done 1} button .f.bcancel -text [G_msg "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