def dragFixedStaff(self, *pos): if self.contentIdxLocked: self.dragStaff.origin = self.rossecorp(Point(*pos)) self.content[self.contentIdx] = self.dragStaff.getPoints() self.dragStaff = None self.contentIdx = -1 self.contentIdxLocked = False elif self.content and 0<=self.contentIdx<len(self.content) and type(self.content[self.contentIdx]) is list: cnt = Contour() cnt.points = self.content[self.contentIdx] cnt.setInstruct(cnt.getInstruct()) self.dragStaff = cnt self.content[self.contentIdx] = None self.contentIdxLocked = True