Re: Tklib tooltip usage problem with configure

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Tklib tooltip usage problem with configure
De : csaba.nemethi (at) *nospam* t-online.de (nemethi)
Groupes : comp.lang.tcl
Date : 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

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