MCPcopy Create free account
hub / github.com/Eve-PySpy/PySpy / OnApply

Method OnApply

highlightdialog.py:128–140  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

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):

Callers 1

OnHookMethod · 0.95

Calls 3

SetMethod · 0.80
updateListMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected