title: Tkinter form with multi-line labels?
body: <p>I'm building a generic, data-driven Tkinter form. Each row has a label on the left and an input field on the right. With simple test data, it works to use a Label for the label text -- but when the desired label text is longer than the Label field, it simply truncates.  </p>
  
  <p>Once the form has been built, I won't need to vary the label text dynamically: the text will be known at construction time. But I don't know the universe of possible label strings. I want the form to accommodate longer label text by word-wrapping the label to multiple lines, expanding vertically. This should of course expand the row in which the label is embedded.</p>
  
  <p>Per <a href="https://stackoverflow.com/q/4011354">Create resizable/multiline Tkinter/ttk Labels with word wrap</a>, I presume I should use a Text widget for word wrapping and disable it as an input field. But I don't know how to constrain it horizontally (to engage the word wrapping) while expanding it to exact size vertically.</p>
  
  <p>In other words, the processing sequence should go something like this:</p>
  
  <ol>
  <li>Determine the overall width of the parent.</li>
  <li>Allocate the width of the Text field relative to the parent. (I imagine I would use <code>grid_columnconfigure(weight=)</code>, but am happy to entertain suggestions.)</li>
  <li>Word-wrap the Text contents to fit its width.</li>
  <li>Vertically expand the Text block to display all lines.</li>
  <li>Propagate the vertical size outward to the parent.</li>
  </ol>
  
  <p>This may have a straightforward answer that would become apparent once I better understand the workings of Tkinter geometry managers in general and Grid in particular. I've read <a href="http://effbot.org/tkinterbook/grid.htm" rel="nofollow noreferrer">http://effbot.org/tkinterbook/grid.htm</a> and <a href="http://effbot.org/tkinterbook/pack.htm" rel="nofollow noreferrer">http://effbot.org/tkinterbook/pack.htm</a> without yet having a big "Aha!" moment. I'd be grateful for reference material that addresses this kind of issue as well.</p>
  
  <p>Thanks for any help!</p>