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

Method clearSearch

gui/builtinMarketBrowser/itemView.py:229–240  ·  view source on GitHub ↗
(self, event=None)

Source from the content-addressed store, hash-verified

227 self.sMkt.searchItems(search, self.populateSearch, 'market')
228
229 def clearSearch(self, event=None):
230 # Wipe item store and update everything to accomodate with it
231 # If clearSearch was generated by SearchCtrl's Cancel button, clear the content also
232
233 if event:
234 self.marketBrowser.search.Clear()
235
236 if self.marketBrowser.mode == 'search':
237 self.marketBrowser.mode = 'normal'
238 self.updateItemStore(set())
239 self.setToggles()
240 self.filterItemStore()
241
242 def populateSearch(self, itemIDs):
243 # If we're no longer searching, dump the results

Callers

nothing calls this directly

Calls 4

updateItemStoreMethod · 0.95
setTogglesMethod · 0.95
filterItemStoreMethod · 0.95
ClearMethod · 0.45

Tested by

no test coverage detected