def editarBanda(self, cid): li = cid.split("_") tp = li[1] xid = li[2] ok = False if tp == TabVisual.TP_FLECHA: regFlecha = self.dbFlechas[xid] w = PantallaTabVFlechas.WTV_Flecha(self, regFlecha, True) if w.exec_(): self.dbFlechas[xid] = w.regFlecha ok = True elif tp == TabVisual.TP_MARCO: regMarco = self.dbMarcos[xid] w = PantallaTabVMarcos.WTV_Marco(self, regMarco) if w.exec_(): self.dbMarcos[xid] = w.regMarco ok = True elif tp == TabVisual.TP_SVG: regSVG = self.dbSVGs[xid] w = PantallaTabVSVGs.WTV_SVG(self, regSVG) if w.exec_(): self.dbSVGs[xid] = w.regSVG ok = True elif tp == TabVisual.TP_MARKER: regMarker = self.dbMarkers[xid] w = PantallaTabVMarkers.WTV_Marker(self, regMarker) if w.exec_(): self.dbMarkers[xid] = w.regMarker ok = True if ok: self.actualizaBandas() if len(self.guion): self.ponSiGrabar()
def editarBanda(self, cid): li = cid.split("_") tp = li[1] id = int(li[2]) ok = False if tp == "F": regFlecha = self.dbFlechas[id] w = PantallaTabVFlechas.WTV_Flecha(self, regFlecha, True) if w.exec_(): self.dbFlechas[id] = w.regFlecha ok = True elif tp == "M": regMarco = self.dbMarcos[id] w = PantallaTabVMarcos.WTV_Marco(self, regMarco) if w.exec_(): self.dbMarcos[id] = w.regMarco ok = True elif tp == "S": regSVG = self.dbSVGs[id] w = PantallaTabVSVGs.WTV_SVG(self, regSVG) if w.exec_(): self.dbSVGs[id] = w.regSVG ok = True elif tp == "X": regMarker = self.dbMarkers[id] w = PantallaTabVMarkers.WTV_Marker(self, regMarker) if w.exec_(): self.dbMarkers[id] = w.regMarker ok = True if ok: self.actualizaBandas()
def cambiar(self): w = PantallaTabVFlechas.WTV_Flecha(self.parent, self.rut_actual(), False) if w.exec_(): self.cambiaFlecha(w.regFlecha)
def flechas(self): w = PantallaTabVFlechas.WTV_Flechas(self, self.listaFlechas(), self.dbFlechas) w.exec_() self.actualizaBandas() QTUtil.refreshGUI()