title: Browse an image file and display it in a kivy window
body: <p>I am a beginner in Kivy and trying to browse an image file using kivy fileChooser and then displaying it on the window. Bellow you find my code but it wouldn't do the task. It just displays '?PNG' on the console. Please, check this out with me !</p>
  
  <pre><code>    import kivy
      from kivy.app import App
      from kivy.uix.boxlayout import BoxLayout
      from kivy.lang import Builder
      from kivy.uix.image import Image
      import os
  
      Builder.load_string("""
      &lt;MyWidget&gt;:
          id: my_widget
          Button
              text: "open"
              on_release: my_widget.open(filechooser.path, 
      filechooser.selection)
          FileChooserListView:
              id: filechooser
              on_selection: my_widget.selected(filechooser.selection)
      """)
  
      class MyWidget(BoxLayout):
          def open(self, path, filename):
              with open(os.path.join(path, filename[0])) as f:
                  print f.read()
  
          def selected(self, filename):
              return Image(source=filename[0])
  
      class MyApp(App):
          def build(self):
              return MyWidget()
  
      if __name__ == '__main__':
          MyApp().run()
  </code></pre>