Tk Library Source Code

View Ticket
Login
Ticket UUID: 753170
Title: ScrolledWindow hang
Type: Bug Version: None
Submitter: jaspert Created on: 2003-06-12 09:58:32
Subsystem: bwidget Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-06-16 16:23:19
Resolution: Invalid Closed By: jaspert
    Closed on: 2003-06-16 09:23:19
Description:
A dialogue box that works OK with a frame causes a hang
when it is replaced by a ScrolledWindow -- sorry there
is so much stuff in the attached example file but I
couldn't get the hang to happen with just the
ScrolledWindow on its own

[jaspert@spirograph Run]$ uname -r
2.4.20-8
[jaspert@spirograph Run]$ /usr/local/ActiveTcl/bin/wish
% info patchlevel
8.4.3
% package require BWidget
1.6
% source disag.tcl
% Disaggregate .mswindow00001.canvas {Desktop} white
generated 1.0 {} Default {} {} 0 0 0

<at this point it is hung>
User Comments: jaspert added on 2003-06-16 16:23:19:
Logged In: YES 
user_id=456242

Sorry I didn't realize the argument of setwidget would be 
added to the display list without explicitly being packed! 
Had to look at other closed bugreports to see the cause of 
this is that bwidget now uses grid to do this, and the 
cause of my problem was trying to pack it afterwards...

hobbs added on 2003-06-16 07:22:10:
Logged In: YES 
user_id=72656

you do not indicate where in the program the replaced code 
causes an error, but from cursory inspection it is the use of 
pack that isn't well handled.  pack and grid do not function 
together, and you have to correctly setwidget code in a 
scrolledwindow without further pack or grid calls to not cause 
an infinite loop.

jaspert added on 2003-06-12 16:58:32:

File Added - 52877: disag.tcl

Attachments: