Tk Library Source Code

View Ticket
Login
Ticket UUID: 3511994
Title: ScrolledWindow setwidget buggy
Type: Bug Version: None
Submitter: wkechel Created on: 2012-03-27 16:17:45
Subsystem: bwidget Assigned To: oehhar
Priority: 5 Medium Severity:
Status: Deleted Last Modified: 2012-03-28 13:37:26
Resolution: Duplicate Closed By: oehhar
    Closed on: 2012-03-28 06:37:26
Description:
Calling ScrolledWindow::setwidget does not make the widget intended to be scrolled visible since ScrolledWindow::setwindow method lacks a raise:

toplevel .t
text .t.t -width 10 -height 4;
.t.t insert end {z1
z2
z3
z4
z5
z6
z7
z8
z9
z10}

ScrolledWindow::create .t.s -auto none;
pack .t.s -fill both -expand 1;
.t.s setwidget .t.t

does not show the text widget. Adding a raise command after gridding the widget into the scrolledwindow works fine:

    grid $widget -in $path -row 1 -column 1 -sticky news
    raise $widget;


ATTENTION:
- method getwidget would be fine
- support to remove a widget from a scrolledwindow would be fine (setwidget "")
User Comments: oehhar added on 2012-03-28 13:37:26:

allow_comments - 1

Duplicate to 3511938