title: How can I pass a Text widget to a function in another module
body: <p>Is it possible to pass a Text widget to another file? I have a <code>main.py</code> file and a second file named <code>fuction.py</code>. Can I do the following?</p>
  <p>in the <code>main.py</code>:</p>
  <pre class="lang-py prettyprint-override"><code>myText = Text(miFrame,width = 117, height = 18).place(x=20, y = 171)
  
  function.some_function(myText)
  </code></pre>
  <p>And in the <code>function.py</code>:</p>
  <pre><code>def some_function(myText):
       myText.insert(END, &quot;bla bla bla&quot;)
  </code></pre>
  <p>When I try to execute the above code I receive the following message:</p>
  <pre><code>AttributeError: 'NoneType' object has no attribute 'insert' 
  </code></pre>