Deutsch   English   Français   Italiano  
<eYecndFfv-CoWub7nZ2dnZfqnPWdnZ2d@brightview.co.uk>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 26 Jun 2024 07:45:57 +0000
From: Mark Summerfield <mark@qtrac.eu>
Subject: Tklib tooltip usage problem with configure
Newsgroups: comp.lang.tcl
MIME-Version: 1.0
User-Agent: Pan/0.154 (Izium; 517acf4)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <eYecndFfv-CoWub7nZ2dnZfqnPWdnZ2d@brightview.co.uk>
Date: Wed, 26 Jun 2024 07:45:57 +0000
Lines: 31
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-q5qEqFAT4HEQ2P9D6voAG0wnlmy6O14FfRN3agO4/8qQEk4b2B+OG8+v1lkusrMo+WuWOkYCBl8UTQD!ImfA8hFnCU2mPVujvOCJ/EJmF8rwkEbi2XWK2t7AMzeHepvDkunjWKr8QKKpCeJQIcEjlvZyIhj+!nyt1VTwWnAFoA6ycx+lt93kZGw==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 1866

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]