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

Method OnToListDclick

gui/fitBrowserLite.py:135–147  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

133 self.toList.unselectAll()
134
135 def OnToListDclick(self, event):
136 event.Skip()
137 row, _ = self.toList.HitTest(event.Position)
138 if row == -1:
139 return
140 try:
141 fit = self.toList.fits[row]
142 except IndexError:
143 return
144 self.toList.removeFits([fit])
145 self.fromList.addFits([fit])
146 self.fromList.unselectAll()
147 self.toList.unselectAll()
148
149 def resetContents(self):
150 fits = [f for f in self.allFits if f not in self.toList.fits]

Callers

nothing calls this directly

Calls 4

removeFitsMethod · 0.80
addFitsMethod · 0.80
unselectAllMethod · 0.80
HitTestMethod · 0.45

Tested by

no test coverage detected