title: Python file I/O with Tkinter
body: <p>I'm trying to open a .txt file with Python. I'm trying to fill a Tkinter text widget with the files contents. </p>
  
  <p>However with the following snippet, when I try to open the files contents and put it in a the text widget <strong>self.Te</strong>, nothing happens. Any clues? </p>
  
  <p>Snippet:</p>
  
  <pre><code>    self.Open = tkFileDialog.askopenfilename(initialdir='C:')
  
      text_file = open(self.Open, "r")
      # self.Te is a text widget
      self.Te.insert('1.0', text_file.read())
  </code></pre>