Skip to content
GolemNikidastrov edited this page Apr 21, 2026 · 1 revision

Manager

The main class for launching the application.

from nevu_ui import Manager, Window

window = Window(size=(800, 600), title="My App", backend=Backend.RayLib)
app = Manager(window)
app.run() # Starts the infinite loop
  • Methods to override (Hooks):
    • on_start(self) — Called once before the loop starts.
    • on_update(self, events) — Called every frame before the UI update.
    • on_draw(self) — Called every frame before the UI is drawn.
    • on_exit(self) — Called when the window is closed.

Window / ConfiguredWindow

Creates an OS window.

  • Parameters (kwargs):
    • size (NvVector2 | tuple): Window size.
    • title (str): Window title.
    • resizable (bool): Whether the window can be resized.
    • resize_type (ResizeType): How the UI reacts to resizing (CropToRatio, FillAllScreen).
    • backend (Backend): The engine (Backend.Pygame, Backend.Sdl, Backend.RayLib).
    • base_fps (int): Target FPS (default is 60).

Clone this wiki locally