title: How do I create an Import File Button with Tkinter?
body: <p>So you know how when you use Notepad (on Windows), for example, and you want to open an old file? You click file, then open, then a file dialog opens ups and you can select the file you want, and the program will display its contents.</p>
  
  <p>Basically, I want to make a button in Python that can do that exact thing.</p>
  
  <p>Here's my function for the button-</p>
  
  <pre><code>def UploadAction():
      #What to do when the Upload button is pressed
      from tkinter import filedialog
  </code></pre>
  
  <p>When I click on the button assigned to this action, nothing happens, no errors, no crash, just nothing.</p>