From 61e089f27ccce6dc7f82b33eeac5e3ecb6b05a63 Mon Sep 17 00:00:00 2001 From: Bigtan Date: Sat, 24 Oct 2015 23:33:32 +0800 Subject: [PATCH] Update eventEngine.py fix a minor bug --- vn.event/eventEngine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vn.event/eventEngine.py b/vn.event/eventEngine.py index 2ceada00..703867c3 100644 --- a/vn.event/eventEngine.py +++ b/vn.event/eventEngine.py @@ -143,7 +143,7 @@ class EventEngine: """注销事件处理函数监听""" # 尝试获取该事件类型对应的处理函数列表,若无则忽略该次注销请求 try: - handlerList = self.handlers[type_] + handlerList = self.__handlers[type_] # 如果该函数存在于列表中,则移除 if handler in handlerList: @@ -193,4 +193,4 @@ def test(): # 直接运行脚本可以进行测试 if __name__ == '__main__': - test() \ No newline at end of file + test()