Sujet : Re: Tklib tooltip usage problem with configure
De : csaba.nemethi (at) *nospam* t-online.de (nemethi)
Groupes : comp.lang.tclDate : 26. Jun 2024, 19:17:44
Autres entêtes
Message-ID : <v5hm08$26hib$1@tota-refugium.de>
References : 1
User-Agent : Mozilla Thunderbird
Am 26.06.24 um 09:45 schrieb Mark Summerfield:
I have added tooltips to some widgets and they work fine. For example:
package require tooltip
...
tooltip::tooltip $panel.optionsButton "Modal Show/Hide"
But the tooltips come with a sort of blue/grey background whereas I prefer
the more traditional light yellow.
So I tried this:
tooltip::tooltip configure -background yellow and got this:
Error in startup script: invalid command name ".__tooltip__.label"
while executing
"$b.label configure $opt"
(procedure "configure" line 13)
invoked from within
"configure {*}$args"
(procedure "tooltip::tooltip" line 34)
invoked from within
"tooltip::tooltip configure -background yellow"
(procedure "test::make" line 11)
invoked from within
...
It is no different if I use ::tooltip::tooltip. And I get a similar error
if I just try to print the config options, e.g.,
puts [tooltip::tooltip configure]
That blue/grey background and the error message generated by "tooltip::tooltip configure" are caused by some bugs in version 1.8 of the tooltip package. These bugs are now fixed in the latest tooltip version 1.8.2. I suggest you to check out this new version, in which the default tooltip background is lightyellow (again) and "tooltip::tooltip configure" works as expected.
-- Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de