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: Aric Bills <aric.bills@gmail.com>
Date: Sun Feb 26 2006 - 13:23:20 CET

Sorry for having not taken the time to go over your code in much depth;
hopefully these suggestions will give you something to go on.

1. You may find it easier to do this with [grid] than [pack]. See
http://www.tcl.tk/man/tcl8.4/TkCmd/grid.htm (the grid man page) as well
as http://wiki.tcl.tk/grid for more info.

2. Proper geometry management should fix your scrollbar issue. Again,
I'd use [grid] with the arguments "-sticky ew".

3. The problem with binding to <Button-1> is that the selection doesn't
change until you release the mouse button. You could bind to
<ButtonRelease-1> or to the <<ListboxSelect>> virtual event to capture
the change in selection.

Best regards,
Aric
Received on Sun Apr 30 02:16:00 2006