Artifact
5cf440b085bf229789b3dce0c8126f6ea8dde8d6:
Attachment "testCrop.tcl" to
ticket [842504ff]
added by
vincentdarley
2003-12-02 01:39:16.
catch {console show}
# This one works ok
labelframe .p -width 100 -height 100 -borderwidth 15 \
-relief raised -text title
pack .p
pack propagate .p 0
frame .p.q -bg red -width 100 -height 20
pack .p.q
label .p.r -text "say hello there..." -bg blue -anchor w
pack .p.r
# Now for a text widget
toplevel .t
wm title .t "Text widget"
text .t.t -width 10 -height 5 -borderwidth 15 -relief raised
pack .t.t
frame .t.t.q -bg red -width 100 -height 20
label .t.t.r -text "say hello there..." -bg blue -anchor w
.t.t window create end -window .t.t.q
.t.t insert end \n
.t.t window create end -window .t.t.r
.t.t insert end \n
# Now for a canvas widget
toplevel .t2
wm title .t2 "Canvas widget"
canvas .t2.t -width 100 -height 50 -borderwidth 15 -relief raised
pack .t2.t
frame .t2.t.q -bg red -width 100 -height 20
label .t2.t.r -text "say hello there..." -bg blue -anchor w
.t2.t create window 1c 0c -window .t2.t.q
.t2.t create window 1c 1c -window .t2.t.r