set nb [ttk::notebook .nb]
set f1 [ttk::frame $nb.f1]
label $f1.la1 -text "おなまえ:"
entry $f1.e1
label $f1.la2 -text "住所:"
entry $f1.e2
label $f1.la3 -text "メールアドレス:"
entry $f1.e3
pack {*}[winfo children $f1] -side top -anc w -padx 10
set f2 [ttk::frame $nb.f2]
set can [canvas $f2.can -width 200 -height 200 -bg #ffffff]
bind $can <ButtonRelease-1> {
$can create oval [expr %x-3] [expr %y-3] [expr %x+3] [expr %y+3] \
-fill red -outline #800000
}
pack {*}[winfo children $f2] -side top
$nb add $f1 -text "テキスト(T)" -underline 5
$nb add $f2 -text "キャンバス(C)" -underline 6
$nb select $f2
ttk::notebook::enableTraversal $nb
pack $nb
|