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

Method jump

gui/marketBrowser.py:103–128  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

101 self.itemView.filterItemStore()
102
103 def jump(self, item):
104 self.mode = 'normal'
105 self.marketView.jump(item)
106 setting = self.settings.get('marketMGJumpMode')
107 itemMetaCat = self.sMkt.META_MAP_REVERSE[self.sMkt.getMetaGroupIdByItem(item)]
108 # Enable item meta category
109 if setting == 1:
110 btn = getattr(self, itemMetaCat)
111 if not btn.GetValue():
112 btn.setUserSelection(True)
113 # Enable item meta category, disable others
114 elif setting == 2:
115 tgtBtn = getattr(self, itemMetaCat)
116 if not tgtBtn.GetValue():
117 tgtBtn.setUserSelection(True)
118 for btn in self.metaButtons:
119 if btn is tgtBtn:
120 continue
121 if btn.GetValue:
122 btn.setUserSelection(False)
123 # Enable all meta categories
124 elif setting == 3:
125 for btn in self.metaButtons:
126 if not btn.GetValue():
127 btn.setUserSelection(True)
128 self.itemView.selectionMade('jump')
129
130 @property
131 def mode(self):

Callers

nothing calls this directly

Calls 5

getMetaGroupIdByItemMethod · 0.80
setUserSelectionMethod · 0.80
selectionMadeMethod · 0.80
getMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected