Created
July 8, 2014 08:00
-
-
Save matteomattei/e94d94098492e555db8a to your computer and use it in GitHub Desktop.
PySide and QtDesigner template for applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from PySide.QtGui import * | |
from PySide.QtCore import * | |
from myapplication_ui import * | |
class MyApplication(QtGui.QMainWindow, Ui_MainWindow): | |
def __init__(self, parent=None): | |
super(MyApplication, self).__init__(parent) | |
self.setupUi(self) | |
if __name__ == "__main__": | |
app = QtGui.QApplication(sys.argv) | |
window = MyApplication() | |
window.show() | |
sys.exit(app.exec_()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment