Sujet : Re: Tklib tooltip usage problem with configure
De : wortkarg3 (at) *nospam* yahoo.com (Harald Oehlmann)
Groupes : comp.lang.tclDate : 26. Jun 2024, 09:17:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5gira$220cv$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
Am 26.06.2024 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]
The tklib tooltip package has a lot of bugs. You may try the main branch version at fossil. I could reproduce the problem you are seeing and it is not solved.
BWidget tooltip still has a lot of advantages. Porting all its code to tklib would be great...
Sorry, no much help...
Harald