我们从Python开源项目中,提取了以下4个代码示例,用于说明如何使用ctypes.PYFUNCTYPE。
def __init__(self): if ctypes is None: warn("IPython GUI event loop requires ctypes, %gui will not be available") else: self.PYFUNC = ctypes.PYFUNCTYPE(ctypes.c_int) self.guihooks = {} self.aliases = {} self.apps = {} self._reset()