DearPyGui
DearPyGui copied to clipboard
Table column is not hidden by default with `default_hide=True`
Version of Dear PyGui
Version: 1.6.2 Operating System: Windows 10
My Issue/Question
A clear and concise description of what the issue/question is. Please provide as much context as possible.
To Reproduce
Steps to reproduce the behavior:
- Open the demo
- Go to
Tables
->Columns options
Expected behavior
Column Three
should be hidden by default.
Screenshots/Video
Standalone, minimal, complete and verifiable example
import dearpygui.dearpygui as dpg
import dearpygui.demo as demo
dpg.create_context()
dpg.create_viewport()
demo.show_demo()
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Hmm.. it seems that enabled=False
does the job. Strange.
My understanding of the default_hide
option is when you instantiate the table column, the column will be hidden by default.
Yes, for example, column five below, enabled
is working as hidable and can unhide through right-click header option:
import dearpygui.dearpygui as dpg
dpg.create_context()
dpg.create_viewport(height=800, width=1000)
dpg.setup_dearpygui()
with dpg.window() as win:
with dpg.table(header_row=True, no_host_extendX=True,
borders_innerH=True, borders_outerH=True, borders_innerV=True,
borders_outerV=True, row_background=True, hideable=True, reorderable=True,
resizable=True, sortable=True, policy=dpg.mvTable_SizingFixedFit,
scrollX=True, delay_search=True, scrollY=True):
c1 = dpg.add_table_column(label="One", default_sort=True)
c2 = dpg.add_table_column(label="Two")
c3 = dpg.add_table_column(label="Three", default_hide=True)
c4 = dpg.add_table_column(label="Four", no_hide=True)
c5 = dpg.add_table_column(label="Five", enabled=False)
dpg.set_primary_window(win, True)
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Hugle is correct!