Sujet : Tklib tooltip usage problem with configure
De : mark (at) *nospam* qtrac.eu (Mark Summerfield)
Groupes : comp.lang.tclDate : 26. Jun 2024, 08:45:57
Autres entêtes
Message-ID : <eYecndFfv-CoWub7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
User-Agent : Pan/0.154 (Izium; 517acf4)
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]