Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from PyQt5 import QtGui
- from PyQt5.QtWidgets import QApplication, QMainWindow
- class Window(QMainWindow):
- def __init__(self):
- super().__init__()
- self.title = "Hello Guy!!!"
- self.top = 100
- self.left = 100
- self.width = 680
- self.height = 500
- self.init()
- def init(self):
- self.setWindowTitle(self.title)
- self.setGeometry(self.top, self.left, self.width, self.height)
- App = QApplication(sys.argv)
- window = Window()
- sys.exit(App.exec())
Add Comment
Please, Sign In to add comment