Tk Library Source Code

View Ticket
Login
Ticket UUID: 1492211
Title: NoteBook Tab Deletion Problems
Type: Bug Version: None
Submitter: davidhbigelow Created on: 2006-05-20 20:10:32
Subsystem: bwidget Assigned To: hobbs
Priority: 7 High Severity:
Status: Closed Last Modified: 2006-06-15 00:38:32
Resolution: Out of Date Closed By: hobbs
    Closed on: 2006-06-14 17:38:32
Description:
If you have 6 notebook tabs, and start deleting them 
from the middle to the end (e.g. index 2 -> end), the 
tabs will either not reorganize properly and the 
final tab will throw an exception.

If a middle tab is removed, the tabs should 
automatically slide-down to take it's place.
User Comments: pointsman added on 2006-06-14 07:23:33:
Logged In: YES 
user_id=13222

I didn't see that bug anymore, but I saw it in the past.
IIRC, check in:

Wed Jan 26 01:01:24 2005 UTC (16 months, 2 weeks ago) by hobbs
Branch: MAIN
Changes since 1.145: +5 -0 lines
Diff to previous 1.145

* notebook.tcl: reverted lester patch - too many bugs
related to
deleting and reinsertion of tabs.

fixed the problem. 

At least something like


package require BWidget

wm geometry . 200x200
NoteBook .nb
pack .nb -fill both -expand yes
foreach page {zero one two three four five} {
    .nb insert end $page -text $page
}
after 2000
foreach page {two three four five} {
    .nb delete $page
}

works for me as expected, with a almost recent BWidget cvs
version.

andreas_kupries added on 2006-06-14 01:02:45:
Logged In: YES 
user_id=75003

I have nothing to do with Bwidgets and its internals. DamonC
and JeffH are the maintainers. Possibly Daniel South
(wildcard_25) as well. As it was with Damon already it now
goes to Jeff.

davidhbigelow added on 2006-05-21 03:11:40:
Logged In: YES 
user_id=664837

Re-Assigned