Tklib tooltip usage problem with configure

Liste des GroupesRevenir à cl tcl 
Sujet : Tklib tooltip usage problem with configure
De : mark (at) *nospam* qtrac.eu (Mark Summerfield)
Groupes : comp.lang.tcl
Date : 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]

Date Sujet#  Auteur
26 Jun 24 * Tklib tooltip usage problem with configure8Mark Summerfield
26 Jun 24 +- Re: Tklib tooltip usage problem with configure1Harald Oehlmann
26 Jun 24 `* Re: Tklib tooltip usage problem with configure6nemethi
27 Jun 24  `* Re: Tklib tooltip usage problem with configure5Mark Summerfield
27 Jun 24   `* Re: Tklib tooltip usage problem with configure4nemethi
27 Jun 24    `* Re: Tklib tooltip usage problem with configure3Mark Summerfield
27 Jun 24     `* Re: Tklib tooltip usage problem with configure2nemethi
27 Jun 24      `- Re: Tklib tooltip usage problem with configure1Mark Summerfield

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal