MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / OnScheduleSearch

Method OnScheduleSearch

gui/builtinShipBrowser/navigationPanel.py:87–94  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

85 self.Bind(wx.EVT_SIZE, self.OnResize)
86
87 def OnScheduleSearch(self, event):
88 search = self.BrowserSearchBox.GetValue()
89 # Make sure we do not count wildcards as search symbol
90 realsearch = search.replace('*', '').replace('?', '')
91 minChars = 1 if isStringCjk(realsearch) else 3
92 if len(realsearch) >= minChars:
93 self.lastSearch = search
94 wx.PostEvent(self.shipBrowser, SearchSelected(text=search, back=False))
95
96 def ToggleSearchBox(self):
97 if self.BrowserSearchBox.IsShown():

Callers

nothing calls this directly

Calls 3

isStringCjkFunction · 0.90
replaceMethod · 0.80
GetValueMethod · 0.45

Tested by

no test coverage detected