基於python的事件處理模型

1.事件、事件源,事件註冊機與分發器 # -*- coding: utf-8 -*- from enum import Enum from collections import defaultdict class Event(object): def __init__(self, event_type, **kwargs): self.__dict__ = kwargs
相關文章
相關標籤/搜索