Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3dda82

Browse files
committed
docstring
1 parent 6905335 commit b3dda82

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

examples/guis/imgui_decorator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def gui(fig_local): # figure is the only argument, so you can use it within the
3737

3838
global noise_sigma
3939

40-
4140
clicked, img_index = imgui.combo("image", img_index, img_options)
4241
if clicked:
4342
fig_local[0, 0].delete_graphic(fig_local[0, 0]["image"])

fastplotlib/layouts/_imgui_figure.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,19 @@ def decorator(_gui: EdgeWindow | Callable):
293293
decorator(gui)
294294

295295
def append_gui(self, gui: Callable = None, location: str = None):
296+
"""
297+
Append to an existing GUI. Can also be used as a decorator.
298+
299+
Parameters
300+
----------
301+
gui: Callable
302+
function that creates imgui elements
303+
304+
location: str, "right" or "bottom"
305+
the existing GUI window to append more UI elements to
306+
307+
"""
308+
296309
if location is None:
297310
raise ValueError("Must provide GUI location to append to.")
298311

0 commit comments

Comments
 (0)