def METHOD_NAME(self, event):
    width, height = event.physical_size
    gloo.set_viewport(0, 0, width, height)
    self.projection = perspective(25.0, width / float(height), 2.0, 100.0)
    self.program['u_projection'] = self.projection