How to program X11 in python

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

  1. bashcommando

    bashcommando Active Member

    Joined:
    Jan 28, 2014
    Messages:
    223
    Likes Received:
    49
    Is there a tutorial online or something that can help me?

     
    DevynCJohnson likes this.
  2. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Joined:
    May 21, 2013
    Messages:
    1,635
    Likes Received:
    1,285
    Best Answer
  3. rstanley

    rstanley Active Member

    Joined:
    Aug 22, 2013
    Messages:
    295
    Likes Received:
    209
    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

    Joined:
    Jan 28, 2014
    Messages:
    223
    Likes Received:
    49
    Neither. Just X11(Opening windows/drawing lines)
     
    DevynCJohnson likes this.
  5. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Joined:
    May 21, 2013
    Messages:
    1,635
    Likes Received:
    1,285
    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

    Joined:
    Jan 28, 2014
    Messages:
    223
    Likes Received:
    49
    Is there a tutorial for python-xlib
     
    DevynCJohnson likes this.
  7. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Joined:
    May 21, 2013
    Messages:
    1,635
    Likes Received:
    1,285
    Best Answer

Share This Page