내 창 크기를 조정할 때 왜 내 창을 이동할 때 왜 이해가 안되는가 .
내 창을 따르지 않고 .c bind cir <1> [list window %x %y]
으로 만든 다른 창 .
나는 내가 ' 옵션으로 <Configure>
을 사용했습니다,하지만 난TCL TK 창 크기 조정 :
내 코드 아래에 도움을
감사를 수행하는 방법을 알고하지 않습니다
proc window {crx cry} {
set w1 .win
catch {destroy $w1}
toplevel $w1
wm minsize $w1 300 100
wm maxsize $w1 300 100
label $w1.l -text "$crx $cry"
pack $w1.l
}
wm state . zoomed
canvas .c -bg ivory
.c create oval 2 1.5 25 25 -fill #33FF00 -tag cir
.c create oval 30 30 50 50 -fill #33FF00 -tag cir1
.c create oval 60 60 90 90 -fill #33FF00 -tag cir2
.c create oval 90 90 130 130 -fill #33FF00 -tag cir3
pack .c -fill both -expand 1
.c bind cir <1> [list window %x %y]
.c bind cir1 <1> [list window %x %y]
.c bind cir2 <1> [list window %x %y]
.c bind cir3 <1> [list window %x %y]
응답에 @DonalFellows에게 감사드립니다. – Mkn