faloteach.blogg.se

Custom cursor windows 7
Custom cursor windows 7





In this case, if you look at the source code of XDefineCursor(), you'll see it's actually calling XChangeWindowAttributes(), meaning you'll want to use win.change_attributes() in python-xlib. most helper functions aren't implemented If you can't find a matching python-xlib method, you'll often want to look at the libX11 source code to figure out if the function is just a helper that calls some other function under the hood. Most python-xlib methods map directly to X11 messages, ie.Unlike libX11, python-xlib is object-oriented In this case, XCreatePixmapCursor() translates to pixmap.create_cursor().There are two things you want to keep in mind when you need to find the python-xlib equivalent of any libX11 function:







Custom cursor windows 7