[PD-dev] TCL/TK tags
Thomas Grill
t.grill at gmx.net
Thu Aug 22 01:13:44 CEST 2002
Hi all,
as i am new to TCL/TK, i encounter problems with it all the time.
Here is a simple example, the creation of two rectangles
(please don't mind the strange specifiers... they are generated from pointer
values)
-----------------
.x8ff8c8.c create rectangle 69 64 169 164 -tags ec0858GUI -width 2 -fill
#00ff00 -outline #00ff00
.x8ff8c8.c create rectangle 89 84 139 134 -tags ec08c8GUI -fill #0000ff
that's just ok... the second (slightly smaller one) is displayed on top of
the first one.
-------------------
Now, i'd like to add an additional tag (ec0728GRP) to each of them, to e.g.
move them with a single command
.x8ff8c8.c create rectangle 69 64 169 164 -tags ec0858GUI -width 2 -fill
#00ff00 -outline #00ff00
.x8ff8c8.c addtag ec0728GRP withtag ec0858GUI
.x8ff8c8.c create rectangle 89 84 139 134 -tags ec08c8GUI -fill #0000ff
.x8ff8c8.c addtag ec0728GRP withtag ec08c8GUI
Now, only the first (larger) one is visible... why?
------------------------------
many thanks,
Thomas
More information about the Pd-dev
mailing list