def toggleDown(self):
        newFaceID = self.getCurrentFace().getFaceID() ^ self.DOWN_ATTRIBUTE
        self.setCurrentFaceFromID(newFaceID) # newFaceId: 0,1,2,3,4,5
Toggle the up/down attribute.
dataset/ETHPy150Open anandology/pyjamas/library/pyjamas/ui/CustomButton.py/CustomButton.toggleDown