-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
29 lines (21 loc) · 799 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- author: Mahamdi Amine #
# !/usr/bin/env python3 #
# -.- coding: utf-8 -.- #
###########################################################
import sys
from PyQt5 import QtWidgets
from ui.main_ui import Ui_MainWindow
class ApplicationWindow(QtWidgets.QMainWindow):
# Instantiate the app
def __init__(self):
super(ApplicationWindow, self).__init__()
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
def main():
app = QtWidgets.QApplication(sys.argv)
application = ApplicationWindow()
application.show() # lunch the application
application.setFixedSize(772, 400) # with fixed size
sys.exit(app.exec_())
if __name__ == "__main__":
main()