如何在python中将对象添加到列表中?

2024-04-25 21:34:08 发布

您现在位置:Python中文网/ 问答频道 /正文

def guardar(self):

    sAux=""

    combobox=self.ui.cmbItems.currentText()

    cantidad=str(self.ui.spinBox.value())

    subtotal=self.ui.txbSeleccion.text()

    costounidad=self.ui.txbCostoU.text()

    sAux=cantidad+"--"+combobox+" $(unidad)"+costounidad+" $(total)"+subtotal
    self.ui.textBrowser.append(sAux)

我想提取小计的总和(如果有疑问,我将使用qt4)

有人知道我能做什么吗?,谢谢


Tags: textselfuivaluedefstrsubtotalcantidad