Tk Library Source Code

View Ticket
Login
Ticket UUID: 1693391
Title: TitleFrame doesn't collapse after deleting all widgets
Type: Bug Version: None
Submitter: schroedter Created on: 2007-04-03 06:58:21
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-10 22:16:24
Resolution: Rejected Closed By: oehhar
    Closed on: 2009-06-10 15:16:24
Description:
I the following sample the TitleFrame reduces it's size, when the first widget $f.foo is deleted, but it doesn't collapse after deleting the last widget $f.bar:

##########
package require BWidget
TitleFrame .tf -text "title"
grid .tf -sticky news

set f [.tf getframe]
label $f.foo -text "foo foo foo"
label $f.bar -text "bar bar bar"
grid $f.foo -sticky news
grid $f.bar -sticky news

after 3000 [list destroy $f.foo] 
after 6000 [list destroy $f.bar] 
##########

Rolf.
User Comments: oehhar added on 2009-06-10 22:16:24:
this is a property inherited from a frame.
If you replace the top by a frame, you have the same behaviour.
If you want to reset the frame size, use
$f configure -width 1 -height 1

It might be correct that the observed behaviour is not the desired, but it should be modified within tcl, not Bwidgets.