Skip to content

hohfchns/PineyEvent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tiny Event System for Python

Example:

from event import Event, TypedEvent

my_event = Event()
my_typed_event = TypedEvent(str, float)

def receiver(arg1, arg2):
    print(arg1, arg2)

def typed_receiver(arg1: str, arg2: float):
    print(arg1, arg2)

if __name__ == "__main__":
    my_event.connect(receiver)
    my_event.emit("Hi", 8)
    my_typed_event.connect(typed_receiver)
    my_typed_event.emit("Bye", 9.0)

About

A tiny event / signal system for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages