Skip to content

Instantly share code, notes, and snippets.

@koverholt
Created March 19, 2015 21:19
Show Gist options
  • Save koverholt/a0539eeabe0a7adfb811 to your computer and use it in GitHub Desktop.
Save koverholt/a0539eeabe0a7adfb811 to your computer and use it in GitHub Desktop.
import sys
from PyQt4 import QtCore, QtGui, uic
qtCreatorFile = "" # Enter file here.
Ui_MainWindow, QtBaseClass = uic.loadUiType(qtCreatorFile)
class MyApp(QtGui.QMainWindow, Ui_MainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)
Ui_MainWindow.__init__(self)
self.setupUi(self)
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
window = MyApp()
window.show()
sys.exit(app.exec_())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment