Deutsch English Français Italiano |
<v92pbu$30v4$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: Paul Obermeier <obermeier@poSoft.de> Newsgroups: comp.lang.tcl Subject: Re: ? BUG - Tcl9.0b3 Linux - canvas bind Date: Thu, 8 Aug 2024 17:47:54 +0200 Organization: A noiseless patient Spider Lines: 39 Message-ID: <v92pbu$30v4$1@dont-email.me> References: <adf2ce7be1b653d17f639b45e27c5c0e@www.rocksolidbbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 08 Aug 2024 17:48:15 +0200 (CEST) Injection-Info: dont-email.me; posting-host="41139c3b2e1153275062b45ceb7b6231"; logging-data="99300"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ybhWd3g8e550z/5YvPZdOsDgfMYJaouo=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:RAHCt++8eb8OR7QNth7K8Zce0Js= In-Reply-To: <adf2ce7be1b653d17f639b45e27c5c0e@www.rocksolidbbs.com> Bytes: 2218 Am 08.08.2024 um 16:24 schrieb abu: > Please, can you run this 4-lines script on Linux with TclTk 9.0b3 ? > > Note that it runs as expected with TclTk 9.0b3 on Windows and MacOS, so > I suspect > a) my Linux build is wrong > b) it's a bug only for unix (Linux Ubuntu in my case) > > Any suggestion is appreciated. > Here's the script > > > ## --------------------------------------------------------------------- > > # Test with TclTk 9.0b3 > # Windows: OK > # Linux (Ubuntu): not working (OVAL doesn't change color, no message > is printed) > # MacOS: OK > > > pack [canvas .c -background yellow] > c create oval {20 20 200 200} -fill red -activefill blue -tag OVAL > > c bind OVAL <Enter> { puts "Entering the OVAL"} > c bind OVAL <ButtonPress-1> { puts "Clicked inside the OVAL"} > > # Expected behaviour: > # when moving the cursor inside the OVAL > # - it turns from red to blue > # - a message is printed > # when clicking the OVAL > # - a message is printed > > # ------------------------------------------------------------- Works for me on Debian 12.6, SUSE 15.6 and Ubuntu 24.04. Paul