? BUG - Tcl9.0b3 Linux - canvas bind

Liste des GroupesRevenir à cl tcl 
Sujet : ? BUG - Tcl9.0b3 Linux - canvas bind
De : aldo.w.buratti (at) *nospam* gmail.com (abu)
Groupes : comp.lang.tcl
Date : 08. Aug 2024, 15:24:25
Autres entêtes
Organisation : RetroBBS
Message-ID : <adf2ce7be1b653d17f639b45e27c5c0e@www.rocksolidbbs.com>
User-Agent : Rocksolid Light
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
# -------------------------------------------------------------

Date Sujet#  Auteur
8 Aug 24 * ? BUG - Tcl9.0b3 Linux - canvas bind6abu
8 Aug 24 +* Re: ? BUG - Tcl9.0b3 Linux - canvas bind2Harald Oehlmann
9 Aug 24 i`- Re: ? BUG - Tcl9.0b3 Linux - canvas bind1Christian Gollwitzer
8 Aug 24 +- Re: ? BUG - Tcl9.0b3 Linux - canvas bind1Paul Obermeier
8 Aug 24 `* Re: ? BUG - Tcl9.0b3 Linux - canvas bind2greg
8 Aug 24  `- Re: ? BUG - Tcl9.0b3 Linux - canvas bind1abu

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal