def layouts(self): self.mainLayout=QVBoxLayout() self.topLayout=QVBoxLayout() self.bottomLayout=QFormLayout() self.topFrame=QFrame() self.topFrame.setStyleSheet(style.productTopFrame()) self.bottomFrame=QFrame() self.bottomFrame.setStyleSheet(style.productBottomFrame()) ###############add widgets########### self.topLayout.addWidget(self.titleText) self.topLayout.addWidget(self.product_Img) self.topFrame.setLayout(self.topLayout) self.bottomLayout.addRow(QLabel("Name: "),self.nameEntry) self.bottomLayout.addRow(QLabel("Manufacturer: "),self.manufacturerEntry) self.bottomLayout.addRow(QLabel("Price: "),self.priceEntry) self.bottomLayout.addRow(QLabel("Qouta: "),self.qoutaEntry) self.bottomLayout.addRow(QLabel("Status: "),self.availabilityCombo) self.bottomLayout.addRow(QLabel("Image: "),self.uploadBtn) self.bottomLayout.addRow(QLabel(""),self.deleteBtn) self.bottomLayout.addRow(QLabel(""),self.updateBtn) self.bottomFrame.setLayout(self.bottomLayout) self.mainLayout.addWidget(self.topFrame) self.mainLayout.addWidget(self.bottomFrame) self.setLayout(self.mainLayout)
def layouts(self): self.mainLayout = QVBoxLayout() self.topLayout = QVBoxLayout() self.bottomLayout = QFormLayout() self.topFrame = QFrame() self.topFrame.setStyleSheet(style.productTopFrame()) self.bottomFrame = QFrame() self.bottomFrame.setStyleSheet(style.productBottomFrame()) ############### add widgets #################### self.topLayout.addWidget(self.tittleText) self.topLayout.addWidget(self.module_Img) self.topFrame.setLayout(self.topLayout) #self.bottomLayout.addRow(QLabel("Serial Number: "),self.serialNumber) self.bottomLayout.addRow(QLabel("Module Name*: "), self.nameEntry) self.bottomLayout.addRow(QLabel("Description: "), self.detailEntry) self.bottomLayout.addRow(QLabel("BOE#/PO#*: "), self.boeEntry) self.bottomLayout.addRow(QLabel("Owner*: "), self.ownerEntry) self.bottomLayout.addRow(QLabel("Availability: "), self.availabilityCombo) self.bottomLayout.addRow(QLabel("Stored Location: "), self.storedEntry) self.bottomLayout.addRow(QLabel("Fixture Location: "), self.fixtureEntry) self.bottomLayout.addRow(QLabel("Image: "), self.uploadBtn) self.bottomLayout.addRow(QLabel(""), self.deleteBtn) self.bottomLayout.addRow(QLabel(""), self.updateBtn) self.bottomFrame.setLayout(self.bottomLayout) self.mainLayout.addWidget(self.topFrame) self.mainLayout.addWidget(self.bottomFrame) self.setLayout(self.mainLayout)