hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
12.62k stars 669 forks source link

Tabs bar position not working. #2321

Open Cherepakha-R opened 2 months ago

Cherepakha-R commented 2 months ago

Version of Dear PyGui

Version: 1.11.1 Operating System: Windows 11

Tabs bar position not working.

image


# Here's some code anyone can copy and paste to reproduce your issue

import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport(title='Custom Title', width=900, height=800)
window = dpg.window( label="------", width=900, height=800, tag="Primary Window" )

with window as main_win:
    with dpg.tab_bar(label="Test", tag='tab_bar', pos=[100, 0]): # <- Not working
        with dpg.tab(label="Test Setup"):
            dpg.add_text('Testing 1')
        with dpg.tab(label="Monitoring"):
            dpg.add_text('Testing 2')

dpg.set_item_pos('tab_bar', [100, 100]) # <- Not working

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Cherepakha-R commented 2 months ago

And the same problem with dpg.add_separator() and dpg.table().