title: Open txt file through Tkinter GUI
body: <p>I'm wondering how to open a file through a Tkinter GUI, example having a button in your interface that opens a .txt file. It doesn't matter if it loads into a textbox or if it opens in the text-editor just want it to open. Preferably to open in the text-editor.</p>
  
  <pre><code>def openInstruktion():
      f= open("instruktioner.txt")
  
  instruktionBtn = Button(root, text='Spelinstruktioner', command=openInstruktion)
  instruktionBtn.grid(row=6, column=0)
  </code></pre>
  
  <p>I've searched the web for some answer but most people use the menubar. I want it to open through the button posted above.</p>