Re: Pack , bind, & scrollbar help
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Pack , bind, & scrollbar help

From: Bryan Oakley <oakley@bardo.clearlight.com>
Date: Mon Feb 27 2006 - 01:45:28 CET

Ray wrote:
>> 3) Finally, the bind <Double-1> works, but why can't I just change
> "double" to "Button"
> and select things with a single click?

Because the selection happens with the class binding on Button-1, which
is called after your widget-specific binding. Thus, your binding fires
before the class binding sets the selection.

Instead of binding to a physical event, bind to <<ListboxSelect>>.
Received on Sun Apr 30 02:16:24 2006