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

Method OnLeftDown

gui/builtinMarketBrowser/pfSearchBox.py:148–162  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

146 return btnsize
147
148 def OnLeftDown(self, event):
149 btnpos = self.GetButtonsPos()
150 btnsize = self.GetButtonsSize()
151
152 self.CaptureMouse()
153 for btn in range(2):
154 if self.HitTest(btnpos[btn], event.GetPosition(), btnsize[btn]):
155 if btn == 0:
156 if not self.searchButtonPressed:
157 self.searchButtonPressed = True
158 self.Refresh()
159 if btn == 1:
160 if not self.cancelButtonPressed:
161 self.cancelButtonPressed = True
162 self.Refresh()
163
164 def OnLeftUp(self, event):
165 btnpos = self.GetButtonsPos()

Callers

nothing calls this directly

Calls 5

GetButtonsPosMethod · 0.95
GetButtonsSizeMethod · 0.95
HitTestMethod · 0.95
GetPositionMethod · 0.45
RefreshMethod · 0.45

Tested by

no test coverage detected