libtcod / python-tcod

A high-performance Python port of libtcod. Includes the libtcodpy module for backwards compatibility with older projects.
BSD 2-Clause "Simplified" License
410 stars 36 forks source link

added __eq__ in event.Quit definition #23

Closed micaiahparker closed 7 years ago

micaiahparker commented 7 years ago

Makes this work:

import tdl

for event in tdl.event.get():
    if event == tdl.event.Quit():
        # trigger shutdown