Okay, well I've been looking for at least an hour now for some straight-forward python-xlib documentation, and I have been unable to find any. Luckily...I have quite the easy problem.
If somebody would be able to help me create a simple script that would say "Hello" every time the left mouse button is clicked, I have the rest of what I would like to do figured out
This is what I have so far, to no avail:
#!/usr/bin/python import Xlib import Xlib.display def main(): display = Xlib.display.Display() root = display.screen().root while True: event = root.display.next_event() if event: print "Hello" if __name__ == "__main__": main()
Thank you so much in advance.