Advertisement
yankwizera

Main.py

Jul 24th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. import sys
  2.  
  3. # import PyQt4 QtCore and QtGui modules
  4. from PyQt4.QtCore import *
  5. from PyQt4.QtGui import *
  6.  
  7. from mainwindow import MainWindow
  8.  
  9. if __name__ == '__main__':
  10.  
  11.     # create application
  12.     app = QApplication(sys.argv)
  13.     app.setApplicationName('UmuduguduPilar')
  14.  
  15.     # create widget
  16.     w = MainWindow()
  17.     w.setWindowTitle('UmuduguduPilar')
  18.     w.show()
  19.  
  20.     # connection
  21.     QObject.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()'))
  22.  
  23.     # execute application
  24.     sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement