Skip to content

auto-create imgui UI using one or more function signatures #847

Open
@kushalkolar

Description

@kushalkolar

Kinda like ipywidgets interact: https://ipywidgets.readthedocs.io/en/latest/examples/Using%20Interact.html

Would enable faster prototyping.

Would be useful to generate UIs for multiple functions and then possibly stack them in a window.

related to #848

For autogenerating based on function signature, maybe something like:

@fig.add_gui_auto(location="right", ...)
@fig.gui_auto_defaults(
    a=range(0, 10, 2),
    options=["opt1", "opt2", "opt3],
    c=np.linspace(0, 1, 0.05)
)
def compute_function(a: int, b: str = "bah", options="opt1", c: float = 0.1)
    # compute code here

Maybe something like this for stacking?

@fig.add_gui(location="right", ...)
def gui1():
    # some imgui elements

@fig.append_gui(location="right")
def gui2():
    # more imgui elements

For stacking auto-guis, same as regular stacking but use a @fig.append_gui_auto()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy