from ctypes import * c_void_p = c_ulonglong from .gdk_types import * from .gobject_types import * OPAQUE_PTR = POINTER(c_void_p) NULL = OPAQUE_PTR() import platform from pyggi import load libgtk3 = load("libgtk-3", "0") """default gtk types""" unsigned = c_uint double = c_double guint32 = c_uint guint64 = c_ulong gunichar = c_int gint64 = c_long gssize = c_uint guint16 = c_ushort gfloat = c_float guint = c_uint guchar = c_ubyte guint32 = c_uint gpointer = c_void_p GDuplicateFunc = GDuplicateFunc gshort = c_short glong = c_long GQuark = c_uint gulong = c_ulong
from ctypes import cdll, CDLL, c_int, CFUNCTYPE, c_void_p, Structure, c_uint, c_longlong, POINTER, c_char_p import platform from pyggi import load libpango = load( "libpango-1.0","0")
from ctypes import cdll, CDLL, c_int, CFUNCTYPE, c_void_p, Structure, c_uint, c_longlong, POINTER import platform from pyggi import load if platform.platform().startswith("Windows"): libgobbject = load("libgobject-2.0","0") else: libgobject = load("libgobject-2.0","0") GType = c_int G_TYPE_INVALID = c_int (0) G_TYPE_NONE = c_int (1) G_TYPE_INTERFACE = c_int (2) G_TYPE_CHAR = c_int (3) G_TYPE_UCHAR = c_int (4) G_TYPE_BOOLEAN = c_int (5) G_TYPE_INT = c_int (24) G_TYPE_UINT = c_int (7) G_TYPE_LONG = c_int (8) G_TYPE_ULONG = c_int (9) G_TYPE_INT64 = c_int (10) G_TYPE_UINT64 = c_int (11) G_TYPE_ENUM = c_int (12) G_TYPE_FLAGS = c_int (13) G_TYPE_FLOAT = c_int (14) G_TYPE_DOUBLE = c_int (15) G_TYPE_STRING = c_int (16) G_TYPE_POINTER = c_int (17) G_TYPE_BOXED = c_int (18) G_TYPE_PARAM = c_int (19)
from ctypes import * import platform from pyggi import load libwebkit3 = None if platform.platform().startswith("Windows"): libwebkit3 = load("libwebkitgtk-3.0","0") HAVE_CSS3D= False else: libwebkit3 = load("libwebkitgtk-3.0","0") HAVE_CSS3D= True class Asciifier(object): @classmethod def from_param(cls, value): if isinstance(value, bytes): return value else: return value.encode('ascii')
from ctypes import * import platform from pyggi import load libwebkit3 = None if platform.platform().startswith("Windows"): libwebkit3 = load("libwebkitgtk-3.0", "0") HAVE_CSS3D = False else: libwebkit3 = load("libwebkitgtk-3.0", "0") HAVE_CSS3D = True class Asciifier(object): @classmethod def from_param(cls, value): if isinstance(value, bytes): return value else: return value.encode("ascii")
from ctypes import * import platform from pyggi import load if platform.platform().startswith("Windows"): libwebkit = load("libwebkitgtk-1.0","2") HAVE_CSS3D= False else: libwebkit = load("libwebkitgtk-3.0","0") HAVE_CSS3D= True
from ctypes import cdll, CDLL, c_int import platform from pyggi import load if platform.platform().startswith("Windows"): libgdk = load("libgdk-3-0","0") else: libgdk = load("libgdk-3","0") GdkGravity = c_int GdkWindowTypeHint = c_int GdkModifierType = c_int GtkResizeMode = c_int class Asciifier(object): @classmethod def from_param(cls, value): if isinstance(value, bytes): return value else: return value.encode('ascii')
from ctypes import cdll, CDLL, c_int import platform from pyggi import load if platform.platform().startswith("Windows"): libgdk = load("libgdk-win32-3.0","0") else: libgdk = load("libgdk-3","0") GdkGravity = c_int GdkWindowTypeHint = c_int GdkModifierType = c_int GtkResizeMode = c_int
from ctypes import * c_void_p = c_ulonglong from gdk_types import * from gobject_types import * import platform from pyggi import load if platform.platform().startswith("Windows"): libgtk3 = load("libgtk-win32-2.0","0") else: libgtk3 = load( "libgtk-3","0") """default gtk types""" unsigned = c_uint double = c_double guint32 = c_uint guint64 = c_ulong gunichar = c_int gint64 = c_long gssize = c_uint guint16 = c_ushort gfloat = c_float guint = c_uint guchar = c_ubyte guint32 = c_uint gpointer = c_void_p GDuplicateFunc = GDuplicateFunc gshort = c_short glong = c_long
from ctypes import cdll, CDLL, c_int, CFUNCTYPE, c_void_p, Structure, c_uint, c_longlong, POINTER, c_char_p import platform from pyggi import load libgio = load("libgio-2.0","0") GFileProgressCallback = CFUNCTYPE( c_void_p, c_uint, c_uint, c_void_p) GFileReadMoreCallback = CFUNCTYPE( c_void_p,c_char_p, c_uint, c_void_p) GCancellableSourceFunc= CFUNCTYPE( c_uint, c_void_p, c_void_p) goffset = c_uint
from ctypes import cdll, CDLL, c_int, CFUNCTYPE, c_void_p, Structure, c_uint, c_longlong, POINTER, c_char_p import platform from pyggi import load libgio = load("libgio-2.0", "0") GFileProgressCallback = CFUNCTYPE(c_void_p, c_uint, c_uint, c_void_p) GFileReadMoreCallback = CFUNCTYPE(c_void_p, c_char_p, c_uint, c_void_p) GCancellableSourceFunc = CFUNCTYPE(c_uint, c_void_p, c_void_p) goffset = c_uint
from ctypes import cdll, CDLL, c_int, CFUNCTYPE, c_void_p, Structure, c_uint, c_longlong, POINTER, c_void_p OPAQUE_PTR = POINTER(c_void_p) import platform from pyggi import load if platform.platform().startswith("Windows"): libgobject = load("libgobject-2.0-0", "0") else: libgobject = load("libgobject-2.0", "0") GType = c_int G_TYPE_INVALID = c_int(0) G_TYPE_NONE = c_int(1) G_TYPE_INTERFACE = c_int(2) G_TYPE_CHAR = c_int(3) G_TYPE_UCHAR = c_int(4) G_TYPE_BOOLEAN = c_int(5) G_TYPE_INT = c_int(24) G_TYPE_UINT = c_int(7) G_TYPE_LONG = c_int(8) G_TYPE_ULONG = c_int(9) G_TYPE_INT64 = c_int(10) G_TYPE_UINT64 = c_int(11) G_TYPE_ENUM = c_int(12) G_TYPE_FLAGS = c_int(13) G_TYPE_FLOAT = c_int(14) G_TYPE_DOUBLE = c_int(15) G_TYPE_STRING = c_int(16) G_TYPE_POINTER = c_int(17)
from ctypes import * c_void_p = c_ulonglong from .gdk_types import * from .gobject_types import * OPAQUE_PTR = POINTER(c_void_p) NULL = OPAQUE_PTR() import platform from pyggi import load libgtk3 = load("libgtk-3","0") """default gtk types""" unsigned = c_uint double = c_double guint32 = c_uint guint64 = c_ulong gunichar = c_int gint64 = c_long gssize = c_uint guint16 = c_ushort gfloat = c_float guint = c_uint guchar = c_ubyte guint32 = c_uint gpointer = c_void_p GDuplicateFunc = GDuplicateFunc gshort = c_short glong = c_long