fastplotlib.ui.ImguiPopup#

class ImguiPopup(update_call=None)[source]#

An imgui popup drawn within a Figure, opened by a right-click. Subclass and implement update() to draw imgui elements, or pass a callable as update_call.

Popups are not added directly, use ImguiFigure.set_imgui_right_click(), Subplot.set_imgui_right_click() or Graphic.set_imgui_right_click() which provide the parent and window flags via _fpl_add_hook().

Parameters:

update_call (callable) – a callable that draws imgui elements, used instead of update(), see set_imgui_right_click