set_imgui_right_click#

RectangleSelector.set_imgui_right_click(popup=None, *, window_flags=None)#

Set the imgui popup that is opened by a right-click on this graphic, replaces the popup of the subplot or Figure for this graphic. Can also be used as a decorator, see the ImguiFigure.set_imgui_right_click examples.

Parameters:
  • popup (ImguiPopup | callable, optional) – an ImguiPopup instance, or a function that draws imgui elements. Omit when decorating.

  • window_flags (imgui.WindowFlags_, optional) – imgui window flags for the popup