liksys max python Python r25 51908 Apr 10 2007 10 29 13 GCC 20070403 R

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
[liksys@max ~]$ python
Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Xlib
>>> import Xlib.display
>>> display = Xlib.display.Disaply()
>>> root = display.screen().root
>>> import time
>>> while 1 :
... print root.query_pointer().mask
... time.sleep(1)
...
0
0
256
0
0
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
KeyboardInterrupt
>>>