title: Ubuntu: _tkinter.TclError: no display name and no $DISPLAY environment variable
body: <p>So I'm trying to run a python GUI using tkinter from Ubuntu command line, on Windows 10, and get the following error:</p>
  <pre><code>brandon@DESKTOP-V5LTF5T:~$ python3 MainApp.py
  Traceback (most recent call last):
    File &quot;MainApp.py&quot;, line 14, in &lt;module&gt;
      root = tk.Tk()
    File &quot;/usr/lib/python3.6/tkinter/__init__.py&quot;, line 2023, in __init__
      self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
  _tkinter.TclError: no display name and no $DISPLAY environment variable
  </code></pre>
  <p>If you are using the <code>matplotlib</code> library then use this question: <a href="https://stackoverflow.com/questions/37604289/tkinter-tclerror-no-display-name-and-no-display-environment-variable">_tkinter.TclError: no display name and no $DISPLAY environment variable</a></p>
  <p>However, this question is for people using the <code>tkinter</code> library only</p>