Exemple #1
0
    def f16(self):
        if self.ld1 and self.ld2:
            sav("./tmp/trr1.jpg",functions.op_binario(imgtmp,self.rt2,"not"))
            sav("./tmp/trr2.jpg",functions.op_binario(self.rt2,imgtmp,"not"))
            sav(imgtmp,functions.op_binario("./tmp/trr1.jpg","./tmp/trr2.jpg","or"))
            self.ids.imgt.reload()
            self.set_stat("Listo")

        elif self.ld1 or self.ld2:
            self.set_stat(ups2)
        else:
            self.set_stat(upsall)
Exemple #2
0
    def f14(self):
        if self.ld1 and self.ld2:
            sav(imgtmp,functions.op_binario(imgtmp,self.rt2,"xor"))
            self.ids.imgt.reload()
            self.set_stat("Listo")

        elif self.ld1 or self.ld2:
            self.set_stat(ups2)
        else:
            self.set_stat(upsall)