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

Method _showNpsiDialog

gui.py:1036–1052  ·  view source on GitHub ↗
(self, evt=None)

Source from the content-addressed store, hash-verified

1034 highlightdialog.showHighlightDialog(self)
1035
1036 def _showNpsiDialog(self, evt=None):
1037 dialog = wx.MessageBox(
1038 "Do you want to ignore all currently shown characters? " +
1039 "You can undo this under `Options > Clear NPSI Ignore List`.",
1040 "NPSI Ignore List",
1041 wx.YES_NO | wx.YES_DEFAULT | wx.ICON_QUESTION
1042 )
1043 if dialog == 2: # Yes
1044 npsi_list = []
1045 outlist = self.options.Get("outlist", None)
1046 if outlist is None:
1047 return
1048 for r in outlist:
1049 character_id = [r[0]] # Needs to be list to append to ignored_list
1050 npsi_list.append(character_id)
1051 self.options.Set("NPSIList", npsi_list)
1052 self.updateList(outlist)
1053
1054 def _clearNpsiList(self, evt=None):
1055 dialog = wx.MessageBox(

Callers

nothing calls this directly

Calls 3

updateListMethod · 0.95
GetMethod · 0.80
SetMethod · 0.80

Tested by

no test coverage detected