def on_resize(self, width, height):
self.width, self.height = width, height<EOL>self.buffer_width, self.buffer_height = width, height<EOL>self.resize(width, height)<EOL>
Pyglet specific callback for window resize events.