Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Python equivalent to Java's AWT Robot class? [closed]

Does anyone know of a Python class similar to Java Robot?

Specifically I would like to perform a screen grab in Ubuntu, and eventually track mouse clicks and keyboard presses (although that's a slightly different question).

like image 883
Stuart K Avatar asked May 13 '09 19:05

Stuart K


2 Answers

If you have GTK, then you can use the gtk.gdk.Display class to do most of the work. It controls the keyboard/mouse pointer grabs a set of gtk.gdk.Screen objects.

like image 188
Nadia Alramli Avatar answered Oct 15 '22 07:10

Nadia Alramli


Check out GNU LDTP:

GNU/Linux Desktop Testing Project (GNU LDTP) is aimed at producing high quality test automation framework [...]

Especially Writing LDTP test scripts in Python scripting language

like image 35
Benji York Avatar answered Oct 15 '22 08:10

Benji York