(self, operators)
| 510 | return self.get_active_operator(operators) |
| 511 | |
| 512 | def get_active_operator(self, operators): |
| 513 | self.correct_index(len(operators)) |
| 514 | try: return operators[self.selected_index] |
| 515 | except: return None |
| 516 | |
| 517 | def correct_index(self, amount): |
| 518 | self.selected_index = clamp(self.selected_index, 0, max(amount - 1, 0)) |
no test coverage detected