I am almost entirely basing the relevant piece of my code on this:
https://wiki.tcl-lang.org/page/Tile+Table
I have changed it, but for the sake of this query, let's assume only
the following changes:
Line 34, insert:
image create photo ::TileTable::iconDIR -file /home/tcl/icons/defaultset/24pixels/dir_icon.png
Line 60, now 61 because we inserted one:
$w.tree insert {} end -values $datum -tag tag[incr lnum]
replace with:
$w.tree insert {} end -image ::TileTable::iconDIR -values $datum -tag tag[incr lnum]
I expected to see the directory icon inserted right before each
treeview item's text, but nothing appears.
Is there a correct way?
--
Luc
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 29:10:09 |
Calls: | 6,669 |
Calls today: | 1 |
Files: | 12,216 |
Messages: | 5,338,028 |