#!/bin/sh # ---------------------------------------------------------------------- # DEMO: fileselectiondialog in [incr Widgets] # ---------------------------------------------------------------------- #\ exec itkwish -f "$0" ${1+"$@"} package require -exact Iwidgets 2.2 # itkwish interprets the rest... # ---------------------------------------------------------------------- option add *textBackground seashell iwidgets::fileselectiondialog .fsd -modality application button .select -text "Files..." -command { if {[.fsd activate]} { puts "selected: [.fsd get]" } else { puts "" } } pack .select -side left