Tk Library Source Code

View Ticket
Login
Ticket UUID: 1171533
Title: ScrolledWindow/Notebook widgets result in hang
Type: Bug Version: None
Submitter: hemanglavana Created on: 2005-03-27 22:08:42
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-30 21:06:42
Resolution: Rejected Closed By: oehhar
    Closed on: 2009-06-30 14:06:42
Description:
Hi,

The following code results in a "hang" state with
BWidget1.7 on solaris2.8/tcl8.4 when "update idletasks"
is called. 

    package require BWidget
    set swg [ScrolledWindow .swg]
    set wg [NoteBook $swg.nb]
    pack $wg -fill both -expand 1 ;# use of grid
instead of pack resolves this issue
    update idletasks ;# it hangs here

The same code works fine with BWidget1.4.1. After some
debugging, I found out that the problem sees to occur
due to changes commited to 1.5 version of scrollw.tcl file:

----------------------------
revision 1.5
date: 2003/02/25 09:51:03;  author: hobbs;  state: Exp;
 lines: +108 -180
        * scrollw.tcl: complete rewrite of
ScrolledWindow widget to
        address infinite loop scrollbar problems.  This
one is much
        simpler and does not suffer the infinite loop.
 There still seems
        to be an issue with shrinking smaller than one
scrollbar width /
        height in size, but that's not common (nor
fatal).  Addresses
        [Patch #671821, #520903] [Bug #472718, #564691]
----------------------------

Am I facing the shrinking issue mentioned in this log
message?


Hemang.
User Comments: oehhar added on 2009-06-30 21:06:42:
This is wrong usage. Please try:

set swg [ScrolledWindow .swg]
set p [$swg getframe]
set wg [NoteBook $p.nb]
pack $wg -fill both -expand 1