(self, event)
| 126 | event.Skip() |
| 127 | |
| 128 | def OnApply(self, event): |
| 129 | num = self.highlightList.GetItemCount() |
| 130 | for i in range(num): |
| 131 | if self.highlightList.IsChecked(i): |
| 132 | id = int(self.highlightList.GetItemText(i, 1)) |
| 133 | n = 0 |
| 134 | for r in self.highlighted_entities: |
| 135 | if r[0] == id: |
| 136 | del self.highlighted_entities[n] |
| 137 | n += 1 |
| 138 | config.OPTIONS_OBJECT.Set("highlightedList", self.highlighted_entities) |
| 139 | self.Parent.updateList(config.OPTIONS_OBJECT.Get("outlist")) |
| 140 | self.Close() |
| 141 | |
| 142 | def OnCancel(self, event): |
| 143 | if config.OPTIONS_OBJECT.Get("StayOnTop", True): |
no test coverage detected