(self, tick_func)
Runs the window's event loop.

    This is a blocking call that won't exit until the window is closed.

    Args:
      tick_func: A callable, function to call every frame.
Runs the window's event loop.
Runs the window s event loop .
def event_loop(self, tick_func):
    """Runs the window's event loop.

    This is a blocking call that won't exit until the window is closed.

    Args:
      tick_func: A callable, function to call every frame.
    """
    while not glfw.window_should_close(self._context.window):
      pixels = tick_func()
      with self._context.make_current() as ctx:
        ctx.call(
            self._update_gui_on_render_thread, self._context.window, pixels)
      self._mouse.process_events()
      self._keyboard.process_events()
def event_loop ( self , tick_func ) : while not glfw . window_should_close ( self . _context . window ) : pixels = tick_func ( ) with self . _context . make_current ( ) as ctx : ctx . call ( self . _update_gui_on_render_thread , self . _context . window , pixels ) self . _mouse . process_events ( ) self . _keyboard . process_events ( )