(self, selected=None)
| 153 | wx.PostEvent(self.entityChoices, wx.CommandEvent(wx.wxEVT_COMMAND_CHOICE_SELECTED)) |
| 154 | |
| 155 | def refreshEntityList(self, selected=None): |
| 156 | self.choices = self.getEntitiesFromContext() |
| 157 | self.entityChoices.Clear() |
| 158 | |
| 159 | self.entityChoices.AppendItems([p.name for p in self.choices]) |
| 160 | if selected: |
| 161 | idx = self.choices.index(selected) |
| 162 | self.entityChoices.SetSelection(idx) |
| 163 | else: |
| 164 | self.entityChoices.SetSelection(0) |
| 165 | |
| 166 | def getActiveEntity(self): |
| 167 | if len(self.choices) == 0: |
no test coverage detected