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)
| 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 = [] |
no outgoing calls
no test coverage detected