(self)
Set all ctypes functions and attach them to attributes.
Set all ctypes functions and attach them to attributes.
Set all ctypes functions and attach them to attributes .
def _set_cfunctions(self):
        """ Set all ctypes functions and attach them to attributes. """

        cfactory = self._cfactory
        attrs = {
            "gdi32": self.gdi32,
            "user32": self.user32,
        }
        for func, (attr, argtypes, restype) in CFUNCTIONS.items():
            cfactory(
                attr=attrs[attr],
                func=func,
                argtypes=argtypes,
                restype=restype,
            )
def _set_cfunctions ( self ) : cfactory = self . _cfactory attrs = { "gdi32" : self . gdi32 , "user32" : self . user32 , } for func , ( attr , argtypes , restype ) in CFUNCTIONS . items ( ) : cfactory ( attr = attrs [ attr ] , func = func , argtypes = argtypes , restype = restype , )