DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

Table column is not hidden by default with `default_hide=True`

Open sedenka opened this issue 2 years ago • 2 comments

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:

  1. Open the demo
  2. Go to Tables -> Columns options

Expected behavior

Column Three should be hidden by default.

Screenshots/Video

dh

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()

sedenka avatar Aug 07 '22 22:08 sedenka

Hmm.. it seems that enabled=False does the job. Strange.

sedenka avatar Aug 08 '22 00:08 sedenka

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 avatar Aug 08 '22 07:08 hugle

Hugle is correct!

hoffstadt avatar Oct 31 '22 01:10 hoffstadt