I don't think this is true --- every Tk geometry manager returns the widget reference so one can write
$widget = $parent->Widget->pack(...);
$widget = $parent->Widget->grid(...);
$widget = $parent->Widget->place(...);
| [reply] [d/l] |
update: The docs are wrong.
I did not expect it either, and I haven't tested it, but this is from Tk::place (emphasis mine):
$slave->place?(-option=>value?, -option=>value, ...?)?
The place method arranges for the placer to manage the geometry of
$slave. The remaining arguments consist of one or more
-option=>value pairs that specify the way in which $slave's geome-
try is managed. If the placer is already managing $slave, then the
-option=>value pairs modify the configuration for $slave. The
place method returns an empty string as result.
| [reply] |
Then the doc is wrong. Which is not surprising, because it is auto-generated from the original Tcl/Tk docs, and in Tcl/Tk there's no need to write something like
set bla [pack [label .l -text hello]]
as there are no widget references, just path names.
Who will supply a bug report in RT? :-)
| [reply] [d/l] |