Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pack set location method

23 views
Skip to first unread message

chenchih lee

unread,
Mar 19, 2018, 8:53:45 PM3/19/18
to
IS there any way i could used place or other way to set the location

This is my source code:
labelframe .lb -text buttons123
canvas .lb.c -height 10 -width 60 -bd 10

frame .frm -relief groove
pack .lb .lb.c


i wants to set at specific location, do anyone who any method.
I would like to used like

place .lb.c -in .frm -x 520 -y 410 -width 50 -height 25
But it's can't work

Donald Arseneau

unread,
Mar 19, 2018, 9:22:24 PM3/19/18
to
You have garbled English and missing details so it is hard to
answer.

You want to set the canvas at a particular location within the
frame, but you don't tell which point on the canvas will go to
that location; so see the -anchor option for the place command.

You specified -width and -height for both the canvas and place
commands, and the values disagree. What were you trying to do?
You should probably omit the -width and -height from place.

Most important, don't pack the canvas! That is an alternative
placement, and conflicts with place.


--
Donald Arseneau as...@triumf.ca
0 new messages