How to show/hide widgets in Tkinter?
<p>I am attempting to create a program that performs a function given a series of user inputs. Several of the user inputs are only necessary under certain circumstances, and I would like to, if possible, only show the Entry boxes and Labels for those input values when a Checkbutton is selected indicating that the circumstances requiring those inputs are present. What I'm not sure how to do is:</p>

<ul>
<li><p>Put the Labels and Entry boxes I'm adding in between rows that already exist.</p></li>
<li><p>"Hide" the Labels and Entry boxes when the Checkbutton is deselected, without <code>destroy</code>ing them, so that they can be displayed again without losing any already-entered data if the Checkbutton is reselected.</p>

<ul>
<li>Example: I select the Checkbutton, enter data into the new boxes that appear, then deselect the Checkbutton (causing the boxes to no longer be displayed). If I were to then reselect the Checkbutton, the data I entered the last time the Checkbutton was selected should still be there.</li>
</ul></li>
<li><p>"Show" the same Labels and Entry boxes that had previously been "hidden" if the Checkbutton is reselected after having been previously deselcted.</p></li>
</ul>

<p>I don't know if something like this is even possible, but if it's not, please let me know. Also, I am aware that I could simply set the relevant Entry boxes' <code>state</code> to <code>DISABLED</code> while the Checkbutton is deselected, but I would prefer, if possible, that the boxes not appear so that their presence does not confuse users who are not familiar with the circumstances under which the additional inputs are necessary.</p>

<p>If this is relevant, I am using Python 2.7.9, Anaconda 2.2.0 (64-bit), and Tkinter version 81008 on Windows 10 Pro. Feel free to request further information if I've left anything out that would be useful to know. Thanks in advance for any help you're able to provide.</p>