How to program X11 in python

Discussion in 'Desktop / X' started by bashcommando, Aug 23, 2014.

  1. bashcommando

    bashcommando Active Member

    Messages:
    217
    Likes Received:
    43
    Trophy Points:
    28
    Is there a tutorial online or something that can help me?

    DevynCJohnson likes this.
  2. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,379
    Likes Received:
    1,094
    Trophy Points:
    113
    Best Answer
  3. rstanley

    rstanley Active Member

    Messages:
    108
    Likes Received:
    54
    Trophy Points:
    28
    Could you give us a little more information on what you are trying to do? Are you looking to use GTK+ or QT with Python?
    DevynCJohnson likes this.
  4. bashcommando

    bashcommando Active Member

    Messages:
    217
    Likes Received:
    43
    Trophy Points:
    28
    Neither. Just X11(Opening windows/drawing lines)
    DevynCJohnson likes this.
  5. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,379
    Likes Received:
    1,094
    Trophy Points:
    113
    When someone asks something about Python, be sure to tag me ( @DevynCJohnson ). I love Python and it is my preferred and favorite programming language.

    As for the question, you need the python-xlib library/module.

    https://pypi.python.org/pypi/python-xlib
    http://python-xlib.sourceforge.net/

    NOTE:
    python-xlib is for Python2 and python3-xlib is for Python3

    Various installation methods

    apt-get install python-xlib python3-xlib

    pip2 install python-xlib

    pip3 install python3-xlib


    This may help - http://rosettacode.org/wiki/Window_creation/X11
  6. bashcommando

    bashcommando Active Member

    Messages:
    217
    Likes Received:
    43
    Trophy Points:
    28
    Is there a tutorial for python-xlib
    DevynCJohnson likes this.
  7. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,379
    Likes Received:
    1,094
    Trophy Points:
    113
    Best Answer

Share This Page