Skip to content

Commit

Permalink
Include close() in window_events example
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf committed Nov 19, 2019
1 parent cd8af2e commit d9bc54b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/window_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def render(self, time: float, frametime: float):
def resize(self, width: int, height: int):
print("Window was resized. buffer size is {} x {}".format(width, height))

def close(self):
print("Window is closing")

def iconify(self, iconify: bool):
"""Window hide/minimize and restore"""
print("Window was iconified:", iconify)
Expand Down

0 comments on commit d9bc54b

Please sign in to comment.