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

  1. #
  2. # Example 10-3
  3. # Using eval with $args.
  4. #
  5.  
  6. # PackedButton creates and packs a button.
  7. proc PackedButton {path txt cmd {pack {-side right}} args} {
  8.     eval {button $path -text $txt -command $cmd} $args
  9.     eval {pack $path} $pack
  10. }
  11.  
  12.  
  13.