home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 June / PCWorld_2005-06_cd.bin / software / vyzkuste / firewally / firewally.exe / framework-2.3.exe / fileselectiondialog < prev    next >
Text File  |  2003-09-01  |  448b  |  16 lines

  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
  16.