WindowExitHandler Class

Inheritance diagram of WindowExitHandler

class WindowExitHandler

Determine if the window should be closed.

This event handler watches for the ESC key or the window close event and sets self.has_exit to True when either is pressed. An instance of this class is automatically attached to all new pyglet.window.Window objects.

Warning

Deprecated. This class’s functionality is provided directly on Window in pyglet 1.1.

Variables:has_exit – True if the user wants to close the window.

Methods:

on_close()
on_key_press(symbol, modifiers)

Attributes:

Methods

WindowExitHandler.on_close()
WindowExitHandler.on_key_press(symbol, modifiers)

Attributes

WindowExitHandler.has_exit = False

Table Of Contents

Previous topic

WindowEventLogger Class

Next topic

pyglet.window.key