Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matteomattei/e94d94098492e555db8a to your computer and use it in GitHub Desktop.
Save matteomattei/e94d94098492e555db8a to your computer and use it in GitHub Desktop.
PySide and QtDesigner template for applications
#!/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