Tk Library Source Code

View Ticket
Login
Ticket UUID: 748344
Title: Bug: packing a Tk listbox into a BWidget ScrolledWindow
Type: Bug Version: None
Submitter: nobody Created on: 2003-06-03 18:09:14
Subsystem: bwidget Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-06-04 03:17:10
Resolution: Invalid Closed By: hobbs
    Closed on: 2003-06-03 20:17:10
Description:
The minimal
script to reproduce this problem appears to be:

    package require -exact BWidget 1.6
    set sw_t [ScrolledWindow .sw -auto both]
    set t_listbox [listbox [$sw_t getframe].lb]
    $sw_t setwidget $t_listbox
    pack $sw_t
    pack $t_listbox
User Comments: hobbs added on 2003-06-04 03:17:10:
Logged In: YES 
user_id=72656

The use of pack on the widget for setwidget is redundant, and 
arguably incorrect.  In 1.6 the scrolledwindow now uses grid 
(better gm), so it really is now incorrect.

nobody added on 2003-06-04 03:09:29:
Logged In: NO 

I am sorry for bothering you, but I need a clear answer to this 
issue I am having. So, are you saying that I shouldn't pack a 
tk widget inside a bwidget control? Or are you saying that I 
should use grid instead of pack? If so, why?

hobbs added on 2003-06-04 01:41:00:
Logged In: YES 
user_id=72656

what you wrote wasn't correct for 1.4.1 either, it just didn't 
conflict with the gm, which is now grid in 1.6.

nobody added on 2003-06-04 01:37:46:
Logged In: NO 

I am sorry, but I don't understand your comments. This 
problem is not occurring with the BWidgets pacakage version 
1.4.1, so I don't uinderstand what you mean by user error. I 
would expect backwards compatibility to be maintained.

hobbs added on 2003-06-04 01:11:01:
Logged In: YES 
user_id=72656

This is user error, not a bug.  Stop packing - bwidgets 
controls that.