spython
spython copied to clipboard
如何添加回调函数?
为了指定文件在回调函数里面处理加解密操作,在_io_FileIO___init___imp函数里增加了回调函数 ,
ModuleCallBack 的定义如下
但是回调函数ModuleCallBack的值是空的, 没有被赋值。 实际程序main里面已经赋值了。
setModuleCallBack是主程序定义的函数体
请问这个cpython如更改,增加一个回调函数,给在主程序里面处理加解密操作?
为什么不在_io_FileIO___init___imp
里直接调用你的
呢?
因为我想在外部的程序里面调用U盾对文件进行解密。 U盾的代码是已经封装好,其它控件也在使用。 如果直接加到_io_FileIO___init___imp里面,程序不好维护。
------------------ 原始邮件 ------------------ 发件人: "echoechoin/spython" @.>; 发送时间: 2022年2月8日(星期二) 上午9:43 @.>; @.@.>; 主题: Re: [echoechoin/spython] 如何添加回调函数? (Issue #1)
为什么不在_io_FileIO___init___imp里直接调用你的
呢?
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>