Sujet : Re: Treeview item indicators in image-based themes vs Tk 9
De : wortkarg3 (at) *nospam* yahoo.com (Harald Oehlmann)
Groupes : comp.lang.tclDate : 03. Feb 2025, 11:40:23
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vnq6en$15eqg$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
Am 03.02.2025 um 11:22 schrieb Eric Brunel:
Hello all,
I've recently switched to tcl/tk 9.0 and I discovered what seems to be an
issue with image-based themes having an image for the treeview item open/
close indicators.
In tcl/tk 8.6, the styling for these indicators are usually done via
something like this:
ttk::style element create Treeitem.indicator \
image [list $image_for_closed \
user1 $image_for_open \
user2 $image_for_no_children \
] ...
But this doesn't seem to work in tk 9: now all items have an indicator
showing the image_for_closed whether they have children or not, and
whether the item is opened or not.
I suspect a change in the names for the states "user1" and "user2" - which
were admittedly not very user-friendly - but I just can't find any
reference for these, and by what I should replace them in tk 9 if that's
indeed the problem.
Any pointers would be greatly appreciated.
Thanks!
--
Eric
Thanks, Eric,I lightly remeber some discussion on this by Csaba, when those images passed to svg format with Tk 9.It would be worthwile to post this as tk bug, as the migration notes dont mention this:https://core.tcl-lang.org/tk/wiki?name=Migrating+scripts+to+Tk+9&pThanks,
Harald