def rotate_toon(self): for t in self.toons: if t.selection_active(): v = Dialogs.int(self.p, "Rotate", "degrees anticlockwise") if v != None: t.modify_rotation_offset(v)