def find_control ( self, x, y ): """ Finds and returns the topmost control at the specified (x, y ) location, where ( x, y ) are in the control's local coordinate space. If no control is at the specified location, None is return. """ x0, y0 = self.screen_position return adapted_control( QApplication.widgetAt( x0 + x, y0 + y ) )
def control_at(self, x, y): """ Returns the Control at the specified screen coordinates, or None if there is no control at that position. """ return adapted_control(QApplication.widgetAt(x, y))