| Ticket UUID: | 3511938 | |||
| Title: | ScrolledWindow setwidget buggy | |||
| Type: | Bug | Version: | None | |
| Submitter: | wkechel | Created on: | 2012-03-27 15:00:50 | |
| Subsystem: | bwidget | Assigned To: | oehhar | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2012-03-27 22:45:17 | |
| Resolution: | Invalid | Closed By: | oehhar | |
| Closed on: | 2012-03-27 15:45:17 | |||
| 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-27 22:45:17:
Dear Wolfgang, thank you for the bug report. I am sorry, IMHO the report is not adequate because it uses the widget not the way it is documented. You should use the frame returned by "getframe" to place any childs in. Please do: set sw [ScrolledWindow .t.s -auto none] set cw [$sw getframe] text $cw.t -width 10 -height 4 --- Or am I missing something? Regards, Harald | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki