DearPyGui
DearPyGui copied to clipboard
module 'dearpygui.dearpygui' has no attribute 'mvStyleVar_TabBorderSize'
Version of Dear PyGui
Version: 1.7.0 Operating System: Windows 10
My Issue
When I wanted to make borders on tabs and tab buttons, I got an error:
AttributeError: module 'dearpygui.dearpygui' has no attribute 'mvStyleVar_TabBorderSize'
But this style is in the style editor (below is an example)
To Reproduce
import dearpygui.dearpygui as dpg
dpg.create_context()
dpg.create_viewport(title='Custom Title', width=600, height=300)
with dpg.window(label="Example Window", width=300):
with dpg.tab_bar():
with dpg.tab(label='tab 1'):
dpg.add_text('text 1')
with dpg.tab(label='tab 2'):
dpg.add_text('text 2')
dpg.add_tab_button(label='test')
with dpg.theme() as global_theme:
with dpg.theme_component(dpg.mvAll):
dpg.add_theme_color(dpg.mvThemeCol_Border, (255, 0, 0), category=dpg.mvThemeCat_Core)
dpg.add_theme_style(dpg.mvStyleVar_TabBorderSize, 1, category=dpg.mvThemeCat_Core) # <---
dpg.bind_theme(global_theme)
dpg.show_style_editor()
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Expected behavior
