x11_gdi.py 283 Bytes
Newer Older
Francois Mares's avatar
add GUI  
Francois Mares committed
1
2
3
4
5
6
7
8
9
10
11
from ctypes import c_char_p, c_void_p, cdll

# Shared library path hardcode for Xubuntu 15.10

_x11lib = cdll.LoadLibrary('/usr/lib/i386-linux-gnu/libX11.so')

X11_None = 0

x_open_display = _x11lib.XOpenDisplay
x_open_display.argtypes = [c_char_p]
x_open_display.restype = c_void_p