Skip to content

Instantly share code, notes, and snippets.

@ZGainsforth
Created September 11, 2015 20:33
Show Gist options
  • Select an option

  • Save ZGainsforth/daddff0fe8f837fe9648 to your computer and use it in GitHub Desktop.

Select an option

Save ZGainsforth/daddff0fe8f837fe9648 to your computer and use it in GitHub Desktop.
PyQt boilerplate
import sys
from PyQt4 import QtGui
from mainwindow import Ui_MainWindow

class Main(QtGui.QMainWindow):
 def __init__(self):
 QtGui.QMainWindow.__init__(self)
 self.ui = Ui_MainWindow()
 self.ui.setupUi(self)

if __name__ == '__main__':
 app = QtGui.QApplication(sys.argv)
 window = Main()
 window.show()
 sys.exit(app.exec_())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment