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

Method screenToClientFixed

gui/display.py:280–289  ·  view source on GitHub ↗

Wx' ScreenToClient implementation seems to not consider header row height when converting to screen position: https://github.com/wxWidgets/Phoenix/issues/1213 Do it ourselves here.

(self, ptScreen)

Source from the content-addressed store, hash-verified

278 return row
279
280 def screenToClientFixed(self, ptScreen):
281 """
282 Wx' ScreenToClient implementation seems to not consider header row height when
283 converting to screen position: https://github.com/wxWidgets/Phoenix/issues/1213
284 Do it ourselves here.
285 """
286 if ptScreen == wx.Point(-1, -1):
287 return wx.Point(-1, -1)
288 ptClient = self.GetMainWindow().ScreenToClient(ptScreen)
289 return ptClient
290
291 def getSelectedRows(self):
292 rows = []

Callers 3

getRowByAbsMethod · 0.95
spawnMenuMethod · 0.80
spawnMenuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected