DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

try to make a log area by element input_text, but tracked and track_offset params looks actually not working.

Open AzureInvoker opened this issue 2 months ago • 1 comments

dpg.add_input_text( tag="log_output", width=-1, height=-1, border=False, horizontal_scrollbar=True, multiline=True tracked=True, # 自动滚动跟踪 track_offset=1.0 # 1.0 = 底部 ) than update texts to it. not sure if im doing it right. just want to see my log directly in gui window. tried dpg.set_y_scroll(tag, 999999.0) or manualy dpg.configure_item(tag, tracked=True, track_offset=1.0) still not working.

AzureInvoker avatar Nov 12 '25 06:11 AzureInvoker

Setting tracked on a widget will scroll the widget's parent container so that the widget is visible. In your case, it will scroll the window or whatever scrollable container there is so that the input_text shows up, not necessarily the area of input_text where the text cursor is located - it basically pins the track_offset * 100% of input_text height to track_offset * 100% of container's height, if I remember correctly.

set_y_scroll is only supported on windows, child windows, and tables - and you should be getting an error message saying that.

Why are you using input_text - is it for text selection/copying?

v-ein avatar Nov 12 '25 09:11 v-ein

Closing this ticket - explanation given and there's no further feedback from the OP.

v-ein avatar Dec 17 '25 18:12 v-ein