(self, entity)
| 170 | return self.choices[self.entityChoices.GetSelection()] |
| 171 | |
| 172 | def setActiveEntity(self, entity): |
| 173 | try: |
| 174 | idx = self.choices.index(entity) |
| 175 | except IndexError: |
| 176 | return False |
| 177 | self.entityChoices.SetSelection(idx) |
| 178 | return True |
| 179 | |
| 180 | def checkEntitiesExist(self): |
| 181 | if len(self.choices) > 0: |
no test coverage detected