Deutsch   English   Français   Italiano  
<v70kmb$4tbu$1@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Harald Oehlmann <wortkarg3@yahoo.com>
Newsgroups: comp.lang.tcl
Subject: Re: Tklib's tooltip poss bug in method although fine in a function
Date: Sun, 14 Jul 2024 15:43:45 +0200
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <v70kmb$4tbu$1@dont-email.me>
References: <iFGdnSVIs-mdwQ_7nZ2dnZfqnPadnZ2d@brightview.co.uk>
 <v6u9j3$3lknd$1@dont-email.me> <v6uval$3pem5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 14 Jul 2024 15:43:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="94286279c8c966031b7592d113c0e5de";
	logging-data="161150"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+NW/EQD8Z87hJGsRgCqJA0"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:pGVm7Y2RuMz0q4tCayzZHzDy/uQ=
In-Reply-To: <v6uval$3pem5$1@dont-email.me>
Content-Language: en-GB
Bytes: 2797

Am 14.07.2024 um 00:32 schrieb undroidwish:
> On 7/13/24 18:21, greg wrote:
>> Am 13.07.24 um 12:50 schrieb Mark Summerfield:
>>> In the script below, clicking button two works fine, but even hovering
>>> over button One produces an error (shown at the end).
> ...
>>> self may only be called from inside a method
> ...
>>> "uplevel 2 { self }"
>>>      (procedure "PackageNamespaceGet" line 17)
>>>      invoked from within
>>> "PackageNamespaceGet"
>>>      (procedure "::msgcat::mc" line 2)
> ...
>> With tcl 8.6 with the helpers proc callback engine there is no error 
>> message.
>> The error occurs in 9.0.
>> As far as I understand, the handling has become more restrictive under 
>> 9.0.
> ...
> 
> My humble interpretation is that the problem lies in msgcat::mc 
> fundamentally. Wrong assumptions over call context. Independent of
> Tcl versions 8 or 9. But I might be mislead still. It is worth a
> ticket anyways.

Dear Mark, dear Christian,

yes, both, msgcat and tooltip were recently changed.

Did you use tklib 0.8 release and TCL/Tk 9.0b2 ?

Those tickets are in both of them:
https://core.tcl-lang.org/tklib/info/3300362
https://core.tcl-lang.org/tcl/tktview/e02798626dfbcd7b33db

I tried your snippet with this and can reproduce the issue.

Here is the TCL ticket:
https://core.tcl-lang.org/tcl/tktview/91b3a5bb14e6e8ae1d1c5349af12e08879ea152d
and here the TkLib ticket:
https://core.tcl-lang.org/tklib/tktview/6e85abae9e49281b3b1212e25082f73239f7ea9e

I hope, we will find a solution. I am not familiar with TCL-OO and all 
of the TCLOO within msgcat came from others, sorry for that...

Thank you all and take care,
Harald