home *** CD-ROM | disk | FTP | other *** search
/ Practical Programming in Tcl & Tk (4th Edition) / TCLBOOK4.BIN / pc / exsource.old / 28_8.tcl < prev    next >
Text File  |  2003-04-15  |  193b  |  12 lines

  1. #
  2. # Example 28-8
  3. # Using the <<MenuSelect>> virtual event.
  4. #
  5.  
  6. proc MenuChanged {w} {
  7.     puts "Menu $w selection: [$w entrycget active -label]"
  8. }
  9. bind .mbar.file <<MenuSelect>> {MenuChanged %W}
  10.  
  11.  
  12.