old_contents: #!/usr/bin/env python
  
  import sys
  from PySide import QtGui
  
  app = QtGui.QApplication(sys.argv)
  
  wid = QtGui.QWidget()
  wid.resize(250, 150)
  wid.setWindowTitle('Simple')
  wid.show()
  
  sys.exit(app.exec_())
  
new_contents: #!/usr/bin/env python
  
  import sys
  from PySide import QtGui
  
  class MainApp(QtGui.QWidget) :
      def __init__(self) :
          super(MainApp, self).__init__()
  
          self.initUI()
  
      def initUI(self) :
          self.setGeometry(300, 300, 250, 150)
          self.setWindowTitle('Budget')
  
          self.show()
  
  def main() :
      app = QtGui.QApplication(sys.argv)
      mainApp = MainApp()
      sys.exit(app.exec_())
  
  if __name__ == '__main__' :
      main()
  
subject: Make app more OOish