Hinex_The_Crabe

Python3 GUI with PyQt5

Jun 25th, 2017
2,254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. from PyQt5.QtGui import *
  2. from PyQt5.QtCore import *
  3. from PyQt5.QtWidgets import *
  4. import gui
  5. import sys
  6. class Example(QMainWindow, gui.Ui_MainWindow):
  7.     def __init__(self):
  8.         super().__init__()
  9.         self.setupUi(self)
  10. if __name__ == '__main__':
  11.     app = QApplication(sys.argv)
  12.     form = Example()
  13.     form.show()
  14.     app.exec()
Advertisement
Add Comment
Please, Sign In to add comment