Python X Library

Complete X11R6 client-side implementation written in Python
Download

Python X Library Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Mike Grant
  • Publisher web site:
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 195 KB

Python X Library Tags


Python X Library Description

Complete X11R6 client-side implementation written in Python The Python X Library is intended to be a fully functional X client library for Python programs. It is written entirely in Python, in contrast to earlier X libraries for Python (the ancient X extension and the newer plxlib) which were interfaces to the C Xlib.This is possible to do since X client programs communicate with the X server via the X protocol. The communication takes place over Unix sockets, DECnet, TCP/IP or any other suitable streaming network protocol. The C Xlib is merely an interface to this protocol, providing functions suited for a C environment.There are three advantages of choosing to implement a pure Python library:· Integration: The library can make use of the wonderful object system in Python, providing an easy-to-use class hierarchy.· Portability: The library will be usable on (almost) any computer which have Python installed. A C interface could be problematic to port to non-Unix systems, such as MS Windows or OpenVMS.· Maintainability: It is much easier to develop and debug native Python modules than modules written in C. Requirements: · Python What's New in This Release: · A couple of new extensions, a Python 2.5 fix and a couple of aliases (Display.get_atom() now uses the internal cache and added Window.raise_window()). Tabs converted to spaces (SF id: 1559082). · Alex Badea contributed a RECORD extension module, allowing Python Xlib programs to capture mouse and keyboard events (or all other core or extension events) easily. A demo is in the examples directory. See http://refspecs.freestandards.org/X11/recordlib.pdf for more information. · Mike Meyer contributed a Xinerama extension module, allowing Python Xlib programs to interrogate the X server about positions and sizes of multiple screens. Specifications are a bit tricky to find - has some older specs and the source code of the xorg project (libs & server code) has "definitive" information. · Bugfix to correct handling of XAuthority file parsing under Python 2.5 causing failed authentication.


Python X Library Related Software