def on_btnGrabarven_clicked(self, widget, Data=None): self.Conce = self.entConce.get_text() self.Precio = self.entPrecio.get_text() if factura.Grabarven(self.dataf, self.Conce, self.Precio) == False: self.avisodni.show() factura.limpiarven(self.entConce, self.entPrecio) factura.mostrarven(self.listaVentas, self.trewVentas, self.dataf)
def on_btnVentas_clicked(self, widget): self.lblMatriven.set_text(self.datam) self.lblFacturav.set_text(self.dataf) factura.mostrarven(self.listaVentas, self.trewVentas, self.dataf) self.ventanaVentas.show()