demos/fileselectiondialog
raw| 1 | # ---------------------------------------------------------------------- |
| 2 | # DEMO: fileselectiondialog in [incr Widgets] |
| 3 | # ---------------------------------------------------------------------- |
| 4 | package require Iwidgets 4.0 |
| 5 | |
| 6 | iwidgets::fileselectiondialog .fsd -modality application |
| 7 | |
| 8 | button .select -text "Files..." -command { |
| 9 | if {[.fsd activate]} { |
| 10 | puts "selected: [.fsd get]" |
| 11 | } else { |
| 12 | puts "" |
| 13 | } |
| 14 | } |
| 15 | pack .select -side left |