• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email


src/p/y/pygtk-HEAD/examples/gtk/mirror.py   pygtk(Download)
def gdk_offscreen_window_get_pixmap(window):
    pm = cgdk.gdk_offscreen_window_get_pixmap(hash(window))
    return cgobject.pygobject_new(ctypes.c_void_p(pm))
 
def dbg(s):
    if DBG: print s
 
    def _offscreen_window_to_parent(self, offscreen_window, offscreen_x, offscreen_y, parent_x, parent_y):
        dbg("to_parent")
        x,y = self._to_parent(offscreen_x, offscreen_y)
 
        #FIXME: parent_x and parent_y are gpointers...
        px = ctypes.c_void_p(hash(parent_x))
        px.contents = x
        py = ctypes.c_void_p(hash(parent_y))
    def _offscreen_window_from_parent(self, parent_window, parent_x, parent_y, offscreen_x, offscreen_y):
        dbg("to_child")
        x,y = self._to_child(parent_x, parent_y)
 
        #FIXME: offscreen_x and offscreen_y are gpointers...
        ox = ctypes.c_void_p(hash(offscreen_x))
        ox.contents = x
        oy = ctypes.c_void_p(hash(offscreen_y))

src/p/y/pymacadmin-HEAD/examples/ctypes/airport-update.py   pymacadmin(Download)
def find_airport_password(ssid):
    """Returns the password and a Keychain item reference for the requested Airport network"""
    item            = ctypes.c_void_p()
    password_length = ctypes.c_uint32(0)
    password_data   = ctypes.c_char_p(256)
 
    system_keychain = ctypes.c_void_p()

src/e/p/epimorphism-HEAD/sources/OpenGL/platform/win32.py   epimorphism(Download)
	getExtensionProcedure = staticmethod( OpenGL.wglGetProcAddress )
 
	GLUT_FONT_CONSTANTS = {
		'GLUT_STROKE_ROMAN': ctypes.c_void_p( 0),
		'GLUT_STROKE_MONO_ROMAN': ctypes.c_void_p( 1),
		'GLUT_BITMAP_9_BY_15': ctypes.c_void_p( 2),
		'GLUT_BITMAP_8_BY_13': ctypes.c_void_p( 3),
		'GLUT_BITMAP_TIMES_ROMAN_10': ctypes.c_void_p( 4),
		'GLUT_BITMAP_TIMES_ROMAN_24': ctypes.c_void_p( 5),
		'GLUT_BITMAP_HELVETICA_10': ctypes.c_void_p( 6),
		'GLUT_BITMAP_HELVETICA_12': ctypes.c_void_p( 7),
		'GLUT_BITMAP_HELVETICA_18': ctypes.c_void_p( 8),

src/p/y/PyOpenGL-3.0.1/OpenGL/platform/win32.py   PyOpenGL(Download)
    getExtensionProcedure = staticmethod( OpenGL.wglGetProcAddress )
 
    GLUT_FONT_CONSTANTS = {
        'GLUT_STROKE_ROMAN': ctypes.c_void_p( 0),
        'GLUT_STROKE_MONO_ROMAN': ctypes.c_void_p( 1),
        'GLUT_BITMAP_9_BY_15': ctypes.c_void_p( 2),
        'GLUT_BITMAP_8_BY_13': ctypes.c_void_p( 3),
        'GLUT_BITMAP_TIMES_ROMAN_10': ctypes.c_void_p( 4),
        'GLUT_BITMAP_TIMES_ROMAN_24': ctypes.c_void_p( 5),
        'GLUT_BITMAP_HELVETICA_10': ctypes.c_void_p( 6),
        'GLUT_BITMAP_HELVETICA_12': ctypes.c_void_p( 7),
        'GLUT_BITMAP_HELVETICA_18': ctypes.c_void_p( 8),

src/p/y/pycamiface-HEAD/motmot/cam_iface/cam_iface_ctypes.py   pycamiface(Download)
        if isinstance(buf.ctypes.data,ctypes.c_void_p):
            data_ptr = buf.ctypes.data
        else:
            data_ptr = ctypes.c_void_p(buf.ctypes.data)
        c_cam_iface.CamContext_grab_next_frame_blocking(self.cval,
                                                        data_ptr,
                                                        timeout)
        if isinstance(buf.ctypes.data,ctypes.c_void_p):
            data_ptr = buf.ctypes.data
        else:
            data_ptr = ctypes.c_void_p(buf.ctypes.data)
        c_cam_iface.CamContext_grab_next_frame_blocking_with_stride(self.cval,
                                                                    data_ptr,
                                                                    buf.ctypes.strides[0],

src/z/i/zicbee-vlc-0.9.2/zicbee_vlc/vlc.py   zicbee-vlc(Download)
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
    def __new__(cls, *p):
        if p and p[0] == 0:
            return None
        elif p and isinstance(p[0], (int, long)):
            # instance creation from ctypes
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(p[0])
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
    def __new__(cls, *p):
        if p and p[0] == 0:
            return None
        elif p and isinstance(p[0], (int, long)):
            # instance creation from ctypes
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(p[0])
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
    def __new__(cls, *p):
        if p and p[0] == 0:
            return None
        elif p and isinstance(p[0], (int, long)):
            # instance creation from ctypes
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(p[0])
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
    def __new__(cls, *p):
        if p and p[0] == 0:
            return None
        elif p and isinstance(p[0], (int, long)):
            # instance creation from ctypes
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(p[0])
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 

src/n/u/numpy-refactor-HEAD/numpy/lib/type_check.py   numpy-refactor(Download)
        func.argtypes = [ctypes.py_object]
        func.restype = ctypes.c_void_p
        result = func(ctypes.py_object(obj))
    result = ctypes.cast(ctypes.c_void_p(result), ctypes.POINTER(DATETIMEMETA))
 
    struct = result[0]
    base = struct.base
        result = func(obj, ctypes.c_char_p(None))
    else:
        result = func(obj)
    _unitnum2name = ctypes.cast(ctypes.c_void_p(result), ctypes.POINTER(ctypes.c_char_p))
 
    return (_unitnum2name[base], struct.num, struct.den, struct.events)
 

src/m/o/motmot.cam_iface-0.5.4/motmot/cam_iface/cam_iface_ctypes.py   motmot.cam_iface(Download)
        if isinstance(buf.ctypes.data,ctypes.c_void_p):
            data_ptr = buf.ctypes.data
        else:
            data_ptr = ctypes.c_void_p(buf.ctypes.data)
        c_cam_iface.CamContext_grab_next_frame_blocking(self.cval,
                                                        data_ptr,
                                                        timeout)
        if isinstance(buf.ctypes.data,ctypes.c_void_p):
            data_ptr = buf.ctypes.data
        else:
            data_ptr = ctypes.c_void_p(buf.ctypes.data)
        c_cam_iface.CamContext_grab_next_frame_blocking_with_stride(self.cval,
                                                                    data_ptr,
                                                                    buf.ctypes.strides[0],

src/p/y/PyNuvo-HEAD/pyNuvo/vlc.py   PyNuvo(Download)
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
    def __new__(cls, *p):
        if p and p[0] == 0:
            return None
        elif p and isinstance(p[0], (int, long)):
            # instance creation from ctypes
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(p[0])
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 
    def __new__(cls, *p):
        if p and p[0] == 0:
            return None
        elif p and isinstance(p[0], (int, long)):
            # instance creation from ctypes
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(p[0])
    def __new__(cls, *p):
        if p and p[0] == 0:
            return None
        elif p and isinstance(p[0], (int, long)):
            # instance creation from ctypes
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(p[0])
            return None
        else:
            o=object.__new__(cls)
            o._as_parameter_=ctypes.c_void_p(pointer)
            return o
 
 

src/p/y/python-gnutls-1.2.0/gnutls/library/__init__.py   python-gnutls(Download)
def initialize_gcrypt():
    from ctypes import c_void_p
    from gnutls.library._init import gcrypt_thread_callbacks_ptr
 
    GCRYCTL_INIT_SECMEM = 24
    GCRYCTL_SUSPEND_SECMEM_WARN = 28
    GCRYCTL_RESUME_SECMEM_WARN  = 29
    else:
        gcry_control = libgnutls.gcry_control
 
    gcry_control(GCRYCTL_SET_THREAD_CBS, c_void_p(gcrypt_thread_callbacks_ptr))
    if system == 'cygwin':
        gcry_control(GCRYCTL_DISABLE_SECMEM, 0)
    else:

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next