Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- # import PyQt4 QtCore and QtGui modules
- from PyQt4.QtCore import *
- from PyQt4.QtGui import *
- from mainwindow import MainWindow
- if __name__ == '__main__':
- # create application
- app = QApplication(sys.argv)
- app.setApplicationName('UmuduguduPilar')
- # create widget
- w = MainWindow()
- w.setWindowTitle('UmuduguduPilar')
- w.show()
- # connection
- QObject.connect(app, SIGNAL('lastWindowClosed()'), app, SLOT('quit()'))
- # execute application
- sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement