Re-hello.
I wasn't aware of the ctypes module at all.
It really works well and I solved this problem by using ctypes to access
functions in libXfixes.so.
The final code is here:
http://www.futuredesktop.com/tmp/read_cursor_image.py
# Running it on Linux.
# Sleep a while so you have time to position the mouse-pointer/cursor.
$ sleep 5; python read_cursor_image.py
# The cursor image is saved to cursor1.png
Many thanks!
Cheers
Osmo Antero M.
Grønland, Oslo
Wojciech Muła wrote:
Osmo Maatta <[email protected]> wrote:
I've done it in c-code earlier and it works well.
The c-code is here:
http://code.google.com/p/gscreendump/source/browse/trunk/src/sd_xutils.c
Standard python module ctypes allows to call any function from
a shared library. Try to load xlib and call these XFixes-functions.
w.
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/