Container for pack information for example the widgets and other related info. The pack command appends DOM nodes created for the different widgets as DOM nodes with no connection to the visible window content to an existing DOM node for example the node of the HTML
<body>
tag. For a toplevel widget a HTML
<div>
node is created and appended to the
<body>
tag.
The style attributes width and height have to be provided as a “100px” pixel value with “px” at the end and determine the width and height of the toplevel widget/window. For implementing the -side left and -side right option of the pack command one can use the style attributes {float: left} and {float: right} respectively. For -side top the style float part is omitted, for -side bottom I have not yet found out how to do that. To avoid wrapping of widgets it is normally necessary to have style attribute display set to {display: table-row}, if you have {float: left} or {float: right} but, what a pitty not always, there are special cases where you also for that case have to use {display: block} I have not yet found out all the rules on how to use that. For the small test cases it works, but I am pretty sure there are still a lot of failing cases.
(Part of Tk Widgets in Javascript Paper)