-
Notifications
You must be signed in to change notification settings - Fork 0
/
GST_Auto_Main.py
39 lines (30 loc) · 1.1 KB
/
GST_Auto_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
30
31
32
33
34
35
36
37
38
39
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.uic import *
from PyQt5.QtCore import *
import sys
from Login_UI import Client_Master_and_Login_Window
from selenium import webdriver
class GSTAutoMainWindow(QMainWindow):
def __init__(self):
super(GSTAutoMainWindow, self).__init__()
# setting central widget to Qstackwidget
self.central_widget = QStackedWidget()
self.setCentralWidget(self.central_widget)
# setting login screen to self.central_widget
self.login_screen = Client_Master_and_Login_Window()
self.central_widget.addWidget(self.login_screen)
# Main window heading, logo etc
self.setWindowTitle("NR GST Auto")
self.resize(self.login_screen.size())
self.setStyleSheet(self.login_screen.styleSheet())
self.setWindowIcon(QIcon(QPixmap("N.ico")))
#######################MAIN FUNCTION#########################
def main():
app = QApplication(sys.argv)
window = GSTAutoMainWindow()
window.show()
sys.exit(app.exec_())
if __name__ == '__main__':
main()
webdriver.Chrome().quit()