From dded03f83cca64a3d62dc537f68d8f562194ba2e Mon Sep 17 00:00:00 2001 From: einarf Date: Tue, 19 Nov 2019 17:29:48 +0100 Subject: [PATCH] Missing window events in docs --- docs/guide/basic_usage.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/guide/basic_usage.rst b/docs/guide/basic_usage.rst index 9af1d032..5da77aa2 100644 --- a/docs/guide/basic_usage.rst +++ b/docs/guide/basic_usage.rst @@ -119,13 +119,17 @@ See code for :py:func:`moderngl_window.parse_args` for more details. Window events ------------- -Implement the ``resize`` method to customize window resize handling. - .. code:: python def resize(self, width: int, height: int): print("Window was resized. buffer size is {} x {}".format(width, height)) + def close(self): + print("The window is closing") + + def iconify(self, iconify: bool): + print("Window was iconified:", iconify) + Keyboard input --------------