hoffstadt / hoffstadt/DearPyGui

Getting tab order programmatically

Open
#1,745 0 comments 0 reactions 0 assignees View on GitHub
state: pending type: improvement
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Currently, there is no way of getting the order of the tabs in a tab bar. Getting the children of the tab bar only outputs the order in which the children/tabs were created.

**Describe the solution you'd like**
Having a new function to either get the order of the tabs in the tab bar, or having get_item_info have the order included.

**Additional context**
Currently, it is possible to get the get_item_rect_max and deduct the order using where the actual tab is drawn.
This breaks when the UI is still staged and not yet drawn and will always output 0 0 in that case.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.