def grid_dato(self, grid, row, o_column):
     key = o_column.key
     reg = self.liSonidos[row]
     if key == "DURACION":
         return "%02d:%02d:%02d" % Sound.msc(reg.centesimas)
     elif key == "NOMBRE":
         return reg.name
Esempio n. 2
0
 def grid_dato(self, grid, fila, oColumna):
     clave = oColumna.clave
     reg = self.liSonidos[fila]
     if clave == "DURACION":
         return "%02d:%02d:%02d" % Sound.msc(reg.centesimas)
     elif clave == "NOMBRE":
         return reg.name
    def grid_dato(self, grid, row, o_column):
        key = o_column.key
        li = self.liSonidos[row]
        if key == "DURACION":
            if li[0] is None:
                return ""
            else:
                t = li[2]
                if t is None:

                    wav = self.db[li[0]]
                    if wav is None:
                        t = 0
                    else:
                        ts = Sound.TallerSonido(wav)
                        t = ts.centesimas
                return "%02d:%02d:%02d" % Sound.msc(t)

        else:
            return li[1]
Esempio n. 4
0
    def grid_dato(self, grid, fila, oColumna):
        clave = oColumna.clave
        li = self.liSonidos[fila]
        if clave == "DURACION":
            if li[0] is None:
                return ""
            else:
                t = li[2]
                if t is None:

                    wav = self.db[li[0]]
                    if wav is None:
                        t = 0
                    else:
                        ts = Sound.TallerSonido(wav)
                        t = ts.centesimas
                return "%02d:%02d:%02d" % Sound.msc(t)

        else:
            return li[1]