This method lets you use any callables as event handlers. Simply assign them to C{On...}
properties (where "C{...}" is the name of the event) of the object whose events you are
interested in. For example::
import Skype4Py
def user_status(Status):
print 'The status of the user changed'
skype = Skype4Py.Skype()
skype.OnUserStatus = user_status
来自the documentation for ^{} :
您需要将函数附加到
skype.OnUserAuthorizationRequestReceived
。在希望您正在做一些检查,以确保您的应用程序不会成为垃圾邮件攻击的目标,因为您正在接受所有请求。在
相关问题 更多 >
编程相关推荐