def setLocation(self, x, y): try: Rectangle.move(self, x, y) except TypeError: Rectangle.move(self, int(x), int(y)) return None