<HTML> <HEAD> <!-- Created by texi2html 1.56k from ../src/python-xlib.texi on 22 October 2013 --> <TITLE>The Python X Library - Event Handling</TITLE> </HEAD> <BODY> Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_9.html">previous</A>, <A HREF="python-xlib_11.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>. <P><HR><P> <H1><A NAME="SEC9" HREF="python-xlib_toc.html#TOC9">Event Handling</A></H1> <P> Events are sent from the X server to the X client. Most of the event types deal with user input, but there are also event types used for inter-client communication. <P> Most X applications are built around an event loop, where the client waits for the server to send events. The client responds to the events, typically by doing one or more X requests. <UL> <LI><A HREF="python-xlib_11.html#SEC10">Getting Events</A>: Waiting for events. <LI><A HREF="python-xlib_12.html#SEC11">Selecting Events</A>: Selecting interesting events. <LI><A HREF="python-xlib_13.html#SEC12">Event Types</A>: Details on all event types. <LI><A HREF="python-xlib_14.html#SEC13">Sending Events</A>: Clients sending events to other clients. </UL> <P><HR><P> Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_9.html">previous</A>, <A HREF="python-xlib_11.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>. </BODY> </HTML>