| 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.
|