Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from PyQt5.QtWidgets import QApplication, QWidget
- from PyQt5.QtGui import QIcon
- class App(QWidget):
- def __init__(self):
- super().__init__()
- self.title = 'PyQt5 simple window - pythonspot.com'
- self.left = 10
- self.top = 10
- self.width = 640
- self.height = 480
- self.initUI()
- def initUI(self):
- self.setWindowTitle(self.title)
- self.setGeometry(self.left, self.top, self.width, self.height)
- self.show()
- if __name__ == '__main__':
- app = QApplication(sys.argv)
- ex = App()
- sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement