def reset(self): for pzB in "kqrbnp": lbPZw, cbPZw, lbPZ, lbPZb, cbPZb, tipoW, tipoB = self.dicWidgets[pzB] tipoNv = cbPZw.valor() if tipoW != tipoNv: pzW = pzB.upper() self.config.dicPiezas[pzW] = tipoNv self.dicWidgets[pzB][5] = tipoNv # tiene que ser pzB que esta en misnusculas fich = self.config.ficheroBase(pzB, True) if fich in self.dicImgs: pm = self.dicImgs[fich] else: pm = QTVarios.fsvg2pm(fich, 32) self.dicImgs[fich] = pm lbPZw.ponImagen(pm) tipoNv = cbPZb.valor() if tipoB != tipoNv: self.config.dicPiezas[pzB] = tipoNv self.dicWidgets[pzB][6] = tipoNv fich = self.config.ficheroBase(pzB, False) if fich in self.dicImgs: pm = self.dicImgs[fich] else: pm = QTVarios.fsvg2pm(fich, 32) self.dicImgs[fich] = pm lbPZb.ponImagen(pm)