Ejemplo n.º 1
0
    def __init__(self, store, parrent=None):
        editForm.__init__(self, store, parrent=None)
        self.pixlabel = QtWidgets.QLabel()

        self.nameEdit = QtWidgets.QLineEdit()
        self.typelEdit = QtWidgets.QLineEdit()
        self.materialscombo = materialscombo(store)
        self.WeightSpin = QtWidgets.QSpinBox()
        self.WeightSpin.setRange(1, 1000000)
        self.PriceSpin = QtWidgets.QSpinBox()
        self.PriceSpin.setRange(1, 1000000)

        self._grid.addWidget(QtWidgets.QLabel(u'Название'), 0, 0)
        self._grid.addWidget(self.nameEdit, 0, 1)

        self._grid.addWidget(QtWidgets.QLabel(u'Тип'), 1, 0)
        self._grid.addWidget(self.typelEdit, 1, 1)

        self._grid.addWidget(QtWidgets.QLabel(u'Материал'), 2, 0)
        self._grid.addWidget(self.materialscombo, 2, 1)

        self._grid.addWidget(QtWidgets.QLabel(u'вес'), 3, 0)
        self._grid.addWidget(self.WeightSpin, 3, 1)

        self._grid.addWidget(QtWidgets.QLabel(u'Цена'), 4, 0)
        self._grid.addWidget(self.PriceSpin, 4, 1)

        self.__pixVBox = QtWidgets.QVBoxLayout()
        self.__pixVBox.addWidget(self.pixlabel)
        self.__pixVBox.addStretch(1)
        self._hbox.insertLayout(0, self.__pixVBox)
Ejemplo n.º 2
0
    def __init__(self, store, parrent=None):
        editForm.__init__(self, store, parrent=None)
        self.pixlabel = QtWidgets.QLabel()

        self.productscombo = productscombo(store)
        self.dateEdit = QtWidgets.QLineEdit()
        self.surnameEdit = QtWidgets.QLineEdit()
        self.nameEdit = QtWidgets.QLineEdit()
        self.secnameEdit = QtWidgets.QLineEdit()

        self._grid.addWidget(QtWidgets.QLabel(u'Изделие'), 0, 0)
        self._grid.addWidget(self.productscombo, 0, 1)

        self._grid.addWidget(QtWidgets.QLabel(u'Дата'), 1, 0)
        self._grid.addWidget(self.dateEdit, 1, 1)

        self._grid.addWidget(QtWidgets.QLabel(u'Фамилия'), 2, 0)
        self._grid.addWidget(self.surnameEdit, 2, 1)

        self._grid.addWidget(QtWidgets.QLabel(u'Имя'), 3, 0)
        self._grid.addWidget(self.nameEdit, 3, 1)
        
        self._grid.addWidget(QtWidgets.QLabel(u'Отчество'), 4, 0)
        self._grid.addWidget(self.secnameEdit, 4, 1)


        self.__pixVBox = QtWidgets.QVBoxLayout()
        self.__pixVBox.addWidget(self.pixlabel)
        self.__pixVBox.addStretch(1)
        self._hbox.insertLayout(0, self.__pixVBox)
Ejemplo n.º 3
0
    def __init__(self, store, parrent=None):
        editForm.__init__(self, store, parrent=None)

        self.nameEdit = QtWidgets.QLineEdit()
        self.priceForGrammEdit = QtWidgets.QLineEdit()

        self._grid.addWidget(QtWidgets.QLabel('название'), 0, 0)
        self._grid.addWidget(self.nameEdit, 0, 1)
        self._grid.addWidget(QtWidgets.QLabel('ЦенаЗаГрамм'), 1, 0)
        self._grid.addWidget(self.priceForGrammEdit, 1, 1)
Ejemplo n.º 4
0
    def __init__(self, store, parrent=None):
        editForm.__init__(self, store, parrent=None)

        self.nameEdit = QtWidgets.QLineEdit()
        self.PriceForGrammSpin = QtWidgets.QSpinBox()
        self.PriceForGrammSpin.setRange(1, 1000000)

        self._grid.addWidget(QtWidgets.QLabel(u'Название'), 0, 0)
        self._grid.addWidget(self.nameEdit, 0, 1)
        self._grid.addWidget(QtWidgets.QLabel(u'ЦенаЗаГрамм'), 1, 0)
        self._grid.addWidget(self.PriceForGrammSpin, 1, 1)
Ejemplo n.º 5
0
  def __init__(self,store,parrent=None):
    editForm.__init__(self,store,parrent=None)
    
    self.nameEdit=QtWidgets.QLineEdit()
    self.typeEdit=QtWidgets.QLineEdit()
    self.materialEdit=QtWidgets.QLineEdit()
    self.weightEdit=QtWidgets.QLineEdit()
    self.priceEdit=QtWidgets.QLineEdit()

    self._grid.addWidget(QtWidgets.QLabel('Название'),0,0)
    self._grid.addWidget(self.nameEdit,0,1)
    self._grid.addWidget(QtWidgets.QLabel('Тип'),1,0)
    self._grid.addWidget(self.typeEdit,1,1)
    self._grid.addWidget(QtWidgets.QLabel('Материал'),2,0)
    self._grid.addWidget(self.materialEdit,2,1)
    self._grid.addWidget(QtWidgets.QLabel('Вес'),3,0)
    self._grid.addWidget(self.weightEdit,3,1)
    self._grid.addWidget(QtWidgets.QLabel('Цена'),4,0)
    self._grid.addWidget(self.priceEdit,4,1)
Ejemplo n.º 6
0
  def __init__(self,store,parrent=None):
    editForm.__init__(self,store,parrent=None)
    
    self.productEdit=QtWidgets.QLineEdit()
    self.dateEdit=QtWidgets.QLineEdit()
    self.surnameEdit=QtWidgets.QLineEdit()
    self.nameEdit=QtWidgets.QLineEdit()
    self.secnameEdit=QtWidgets.QLineEdit()

    self._grid.addWidget(QtWidgets.QLabel('Изделие'),0,0)
    self._grid.addWidget(self.productEdit,0,1)
    self._grid.addWidget(QtWidgets.QLabel('Дата'),1,0)
    self._grid.addWidget(self.dateEdit,1,1)
    self._grid.addWidget(QtWidgets.QLabel('Фамилия'),2,0)
    self._grid.addWidget(self.surnameEdit,2,1)
    self._grid.addWidget(QtWidgets.QLabel('Имя'),3,0)
    self._grid.addWidget(self.nameEdit,3,1)
    self._grid.addWidget(QtWidgets.QLabel('Отчество'),4,0)
    self._grid.addWidget(self.secnameEdit,4,1)