[Image of Linux]
The Personal Web Pages of Chris X. Edwards

A Simplified Tk Reference

--------------------------
Keyword:

frame

Description: An organizational widget used to manage groups of other widgets. The frame's size can be specified, but it seems to ignore that in favor of the size of the frame's contents once it has contents.
Example:

frame .l -bg red -cursor right_ptr -borderwidth 6 -relief sunken
frame .r -bg green -borderwidth 6 -relief sunken
label .l.l -text Port
label .r.l -text Starboard
checkbutton .l.t1 -text "Torpedo 1" -variable P1
checkbutton .l.t2 -text "Torpedo 2" -variable P2
checkbutton .r.t1 -text "Torpedo 1" -variable S1
checkbutton .r.t2 -text "Torpedo 2" -variable S2
pack .l.l .l.t1 .l.t2
pack .r.l .r.t1 .r.t2
pack .l .r -side left

  
Official
Syntax:
http://www.scriptics.com/man/tcl8.4/TkCmd/frame.htm

--------------------------
Previous Home Next
This page was created with only free, open-source, publicly licensed software.
This page was designed to be viewed with any browser on any system.
Chris X. Edwards ~ January 2004