title: Python using Tkinter (Raspberry Pi running Debian).
body: <p>To use Tkinter to open a dialog box I have the following Python 2.7 code:</p>
  
  <pre><code>from Tkinkter import Tk
  from tkFileDialog import asksavesfinename
  
  root = Tk().withdraw()
  f = asksaveaskfilename()
  </code></pre>
  
  <p>This works just fine if I run the program under Idle.  </p>
  
  <p>However, if I run it, as root, from the LXTerminal, it fails with the exception “Client is not authorized to connect to Server…..”  </p>
  
  <p>Any help will be appreciated, Thanks.</p>