title: File Selection From Remote Machine In Python
body: <p>I am writing a program in python on Ubuntu. In that program I am struggling to select a file using the command <code>askopenfilename</code> on a remote network connected RaspberryPi.</p>
  
  <p>Can anybody guide me on how to select a file from the remote machine using <code>askopenfilename</code> command or something similar?</p>
  
  <pre><code>from Tkinter import *
  from tkFileDialog import askopenfilename
  import paramiko
  
  if __name__ == '__main__':
  
      root = Tk()
  
      client = paramiko.SSHClient()
      client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
      client.connect('192.168.2.34', username='pi', password='raspberry')
      name1= askopenfilename(title = "Select File For Removal", filetypes = [("Video Files","*.h264")])
      stdin, stdout, stderr = client.exec_command('ls -l')
      for line in stdout:
          print '... ' + line.strip('\n')
      client.close()
  </code></pre>