invalid command name "labelframe"
    while executing
"labelframe .f1 -text "Frame 1""
    (in namespace eval "::request" script line 4)
    invoked from within
"namespace eval ::request $script"
    ("::try" body line 12)

OUTPUT BUFFER:

#!/usr/local/bin/wish labelframe .f1 -text "Frame 1" pack .f1 -fill x labelframe .f2 -text "Frame 2" pack .f2 -fill x entry .f1.e -bg white -bd 2 button .f1.b1 -text "button 1 f1" button .f1.b2 -text "The button 2 of f1" button .f1.b3 -text "b 3 f1" button .f1.b4 -text "button 4 f1" grid .f1.e -row 0 -column 0 -columnspan 2 -sticky nsew grid .f1.b1 -row 0 -column 2 -sticky nsew grid .f1.b2 -row 1 -column 0 -sticky nsew grid .f1.b3 -row 1 -column 1 -sticky nsew grid .f1.b4 -row 1 -column 2 -sticky nsew button .f2.b1 -text "button 1 f2" button .f2.b2 -text "button 2 f2" grid .f2.b1 -row 0 -column 0 -sticky nsew grid .f2.b2 -row 0 -column 1 -sticky nsew grid columnconfigure .f2 0 -weight 1 grid columnconfigure .f2 1 -weight 1 grid columnconfigure .f1 0 -weight 1 grid columnconfigure .f1 1 -weight 1 grid columnconfigure .f1 2 -weight 1