XTEST fake input API #178
Open
XTEST fake input API #178
Labels
Comments
|
The idea with extensions is that they should add methods to the X objects they extend, so it ought to be possible to do this: self.disp.fake_input(
event_type = X.ButtonPress,
detail = X.Button1,
x = pointer_data.root_x, y = pointer_data.root_y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm probably doing something wrong, but unlike older versions of the API of this library still implied out there, in the latest version, the
fake_inputmethod requires a self argument, implying a slightly contrived usage like the one I implemented below:Or at least, that's how I wired a
selfobject for the function call, one havingself.displaybe whatfake_inputexpects it to be.This works, but I wonder whether there is a simpler way intended.
The text was updated successfully, but these errors were encountered: