-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmainMenu.py
45 lines (35 loc) · 1.39 KB
/
mainMenu.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
40
41
42
43
44
45
import sys
import os
from PyQt5.QtWidgets import QApplication,QWidget,QMessageBox,QListWidgetItem,QTableWidget,QTableWidgetItem,QVBoxLayout
from PyQt5 import uic
from DB.warehouseDB import warehouseDB
from materialEntry import MaterialEntry
from quality import Quality
from locationTranfer import LocationTransfer
from warehouseEntry import WarehouseEntry
class MainMenu(QWidget):
def __init__(self):
super().__init__()
self.InitUI()
def InitUI(self):
self.window = uic.loadUi(os.getcwd()+os.sep+r"GUI\mainmenu.ui")
self.window.actionMaterial_Entry.triggered.connect(self.OpenMaterialEntry)
self.window.actionQuality_2.triggered.connect(self.OpenQuality)
self.window.actionLocation_Transfer.triggered.connect(self.OpenLocationTransfer)
self.window.actionWarehouse_Entry.triggered.connect(self.OpenWarehouseEntry)
self.window.show()
def FillingTable(self):
dataBase=warehouseDB()
listing=dataBase.ListingWarehouseProcess()
def OpenMaterialEntry(self):
self.materialEntry=MaterialEntry()
def OpenQuality(self):
self.quality=Quality()
def OpenLocationTransfer(self):
self.locationTranfer=LocationTransfer()
def OpenWarehouseEntry(self):
self.warehouseEntry=WarehouseEntry()
if __name__ == "__main__":
app = QApplication(sys.argv)
ex = MainMenu()
sys.exit(app.exec_())