Fileopen

     # If necessary create the "Open project" dialog
     if {![winfo exists .openProject]} {
  Fileopen .openProject \
      -type open \
      -initialdir [pwd] \
      -filtertypes {{"Mosflm projects" {.mos}} {"All Files" {.*}}}
     }
     # Get file name (as full path) from user
     set l_project_file [.openProject get]

posted @ 2011-08-14 09:58  greencolor  阅读(161)  评论(0编辑  收藏  举报