Ejemplo n.º 1
0
Archivo: main.py Proyecto: brt32/Repo1
    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)
Ejemplo n.º 2
0
    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)