title: Get folder path from FileChooserButton in Python
body: <p>I'm trying to make a basic file transfer GUI app using Python and Glade, and I've hit a bit of a snag while trying to get the path from the File Chooser Dialog. I've tried everything I know and could find but was unsuccessful.</p>
  
  <p>The .glade file is pretty long so I posted the code here: <a href="http://pastebin.com/wsdLMenC" rel="nofollow noreferrer">http://pastebin.com/wsdLMenC</a></p>
  
  <p>And my Python code looks like this </p>
  
  <pre><code>import datetime
  from ftplib import FTP
  from magip import *
  from gi.repository import Gtk
  
  class FTP():
      def __init__(self):
          self.builder = Gtk.Builder()
          self.builder.add_from_file("ftp.glade")
  
          go = self.builder.get_object
  
          self.window = go("window1")
          self.store_magazine = go("store_magazine")
          self.combo_magazine = go("combo_magazine")
          self.store_luni = go("store_luni")
          self.combo_luni = go("combo_luni")
          self.select_folder = go("select_folder")
          self.btn_start = go("btn_start")
  
          for ip in magazine:
              self.store_magazine.append([magazine[ip]])
  
          if host in magazine:
              self.combo_magazine.set_active(magip_index[host])
  
          for luna in luni:
              self.store_luni.append([luni[luna]])
  
          self.builder.connect_signals(Handlers())
          self.window.show_all()
  
  
  class Handlers():
      def btn_start_clicked(self, button):
          with open("btn.txt", "a") as muhfile:
              text = "click {}\n".format(datetime.datetime.now())
              muhfile.write(text)
  
  
  if __name__ == "__main__":
      gui = FTP()
      Gtk.main()
  </code></pre>
  
  <p>The Handlers class is where I want to put all the signals. Currently there's only one there, to test the <code>START</code> button.</p>
  
  <p>Any help is very much appreciated.</p>
  
  <p>Thank you!</p>