Beispiel #1
0
 def __init__(self):
     logicGate.__init__(self, 10)
     self.port.append(Port((20, 10), True))  # OUTPUT
     self.port.append(Port((20, 54), False))
     self.port[0].conn_wire = False
     self.reqr_real = True
     self.real_input = False
     self.draw_image()
     self.rect = self.image.get_rect()
Beispiel #2
0
 def __init__(self):
     logicGate.__init__(self,9)
     self.port.append(Port((44,20),True)) #OUTPUT
     self.port.append(Port((20,20),False))
     self.port[1].conn_wire = False
     self.reqr_real = False
     self.port[0].real_input = True
     self.margin = 10
     self.draw_image()
     self.rect = self.image.get_rect()
Beispiel #3
0
    def __init__(self):
        logicGate.__init__(self, 11)
        self.port.append(Port((20, 10), True))  # OUTPUT
        # INPUT
        self.port.append(Port((6, 16), False))
        self.port.append(Port((6, 32), False))
        self.port.append(Port((6, 48), False))
        self.port.append(Port((6, 64), False))

        self.port[0].conn_wire = False
        self.reqr_real = True
        self.real_input = False
        self.dual_in = True
        self.multi_in = True
        self.hex = ""
        self.draw_image()
        self.rect = self.image.get_rect()
Beispiel #4
0
 def __init__(self):
     logicGate.__init__(self,6)
     self.reqr_real = True
     self.image = pygame.image.load(os.path.join('Module','Resources','xnor_gate.png')).convert_alpha()
     self.rect = self.image.get_rect()
     self.update()