#!/bin/sh # ---------------------------------------------------------------------- # DEMO: buttonbox in [incr Widgets] # ---------------------------------------------------------------------- #\ exec itkwish -f "$0" ${1+"$@"} package require -exact Iwidgets 2.2 # itkwish interprets the rest... # ---------------------------------------------------------------------- iwidgets::buttonbox .bb pack .bb -expand yes -fill both .bb add OK -text OK -command {puts "pushed: OK"} .bb add Apply -text Apply -command {puts "pushed: Apply"} .bb add Cancel -text Cancel -command {puts "pushed: Cancel"} .bb default OK