nvglucifer

Results 33 comments of nvglucifer

Yes, judge `user_data`; item's `type`, `info`, `configuration`, `state` ... in those callbacks might be the only way.

I see it works by using lambda. ``` callback=lambda s, a, u: foo(s, a, u) ``` ``` callback=lambda s, a, u: bob.foo(s, a, u) ```

Hi, There is lisbox's paramenter: `num_items`. I would specify `width` and` num_items` in a listbox, then specify `autosize` in `window` and `auto_resize_x`, `auto_resize_y` in `child_window`. ```python import dearpygui.dearpygui as dpg...

I think `dpg.is_key_pressed/released` are meant to be used with `handler/item_handler`, except `is_key_down` can be queried in normal callback. ```python import dearpygui.dearpygui as dpg dpg.create_context() dpg.create_viewport() listbox_tag = dpg.generate_uuid() items =...

@IvRogoz, ```python with dpg.window(label="demo", autosize=True): dpg.add_listbox(("A","B","C"),tag="listbox") # might need to define separate callback instead of lambda for replacing # user_data with your dict["abcxyz"] or class_instance.variable_abcxyz, dpg.add_button( label="increase listbox's height", user_data=3,...

@IvRogoz, In that case, you need to get the height or rect_size of listbox's parent (group, child_window, window,...), for computing the listbox's num_items. or make your own that comprise a...

DPG uses `ImGui::ListBox` https://github.com/hoffstadt/DearPyGui/blob/d3577817fa69d6b5a8b56fde023b0200c0ff83ef/src/mvBasicWidgets.cpp#L4365 Which originates from https://github.com/ocornut/imgui/blob/139e99ca37a3e127c87690202faec005cd892d36/imgui_widgets.cpp#L8152-L8197 `ImGui::ListBox` seem abstracted away the `ImGui::BeginListBox()` that the size is distinguished (`height_in_items` vs `frame_bb`) https://github.com/ocornut/imgui/blob/139e99ca37a3e127c87690202faec005cd892d36/imgui_widgets.cpp#L8105-L8110 https://github.com/ocornut/imgui/issues/8194 Also, notice the `float height_in_items_f =...

> [@IvRogoz](https://github.com/IvRogoz), In that case, you need to get the height or rect_size of listbox's parent (group, child_window, window,...), for computing the listbox's num_items. > > or make your own...

> Also, notice the `float height_in_items_f = height_in_items + 0.25f;` It explains why you will have redundant pixels at the bottom (num_items=33, there redundant of 33*0.25=8.25 pixels) I was wrong...

`drag_line` is added to the plot. It's not like series added to the y axis. So, `drag_line` might need to be show/hide using an item's callback. ```python import dearpygui.dearpygui as...