demosys/context/__init__.py
def ctx() -> moderngl.Context:
    """ModernGL context"""
    win = window()
    if not win.ctx:
        raise RuntimeError("Attempting to get context before creation")

    return win.ctx
def ctx() -> moderngl.Context:
    """ModernGL context"""
    win = window()
    if not win.ctx:
        raise RuntimeError("Attempting to get context before creation")

    return win.ctx
ModernGL context