Examples in widget demo, listed under
Canvases
1. The canvas item types.
2. A simple 2-D plot.
3. Text items in canvases.
4. An editor for arrowheads on canvas lines.
5. A ruler with adjustable tab stops.
6. A building floor plan.
7. A simple scrollable canvas.
8. Tiles and transparent images.
You can find same with perl -MTk -le " print Tk->findINC( shift ) " demos/widget_lib/items.p
+l
perl -MTk -le " print Tk->findINC( shift ) " demos/widget_lib/style.p
+l
style.pl uses tags to apply font/color... to bunches of text tagged with a certain style...
other files (
plot.pl
ruler.pl
ctext.pl
transtile.pl
cscroll.pl
floor.pl
arrows.pl ) demo stuff too
https://metacpan.org/pod/Tk::Canvas#canvas--bind-tagOrId--sequence---callback
https://metacpan.org/pod/Tk::Canvas#canvas--bbox-tagOrId---tagOrId--tagOrId
For more examples Super Search for site:perlmonks.org Tk Canvas bind bbox same as you would for Tk Canvas Scroll
Ex Determine canvas object under click (Tk)
|