title: How to load a file in PyQt4?
body: <p>everyone! I am currently attempting to make a program that will load/display images. So far, I have successfully created a button with the ability to browse and select your file. However, I do not know what to do after that. My goal for this, is to at least successfully load and display an image. I am still very new to programming, but am willing to learn! Thank you, so much!</p>
  
  <p>Below, is the code I have created. I really just need to help as to what I am supposed to do next. I am lost as to what functions I am supposed to write next. Thanks! </p>
  
  <pre><code>__author__ = 'Jay'
  
  import sys
  from PyQt4 import QtGui, QtCore
  
  class Window(QtGui.QMainWindow):
  
      def __init__(self):
          super(Window, self).__init__()
          self.setGeometry(0, 0, 500, 500)
          self.setWindowTitle('Laser Scan')
          self.setWindowIcon(QtGui.QIcon('Laser.png'))
          self.home()
  
          self.show()
  
      def home(self):
          btn = QtGui.QPushButton("Select File...", self)
          btn.clicked.connect(self.file_open)
          btn.resize(100, 25)
          btn.move(0, 10)
  
  
          self.show()
  
      def file_open(self):
          name = QtGui.QFileDialog.getOpenFileName(self, 'Open File')
          file = open(name, 'r')
  
  def run():
      app = QtGui.QApplication(sys.argv)
      GUI = Window()
      sys.exit(app.exec_())
  
  run()
  </code></pre>