Menu

#601 ScrolledWindow/Notebook widgets result in hang

closed-rejected
bwidget (187)
5
2009-06-30
2005-03-27
No

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.

Discussion

  • Harald Oehlmann

    Harald Oehlmann - 2009-06-30

    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

     
  • Harald Oehlmann

    Harald Oehlmann - 2009-06-30
    • status: open --> closed-rejected
     
MongoDB Logo MongoDB