show/hide table columns from code #1757
Replies: 1 comment
-
I've bumped into the same issue, and managed to sort it out. There's a bit of confusion in terminology here, and might also be a bug or two in DearPyGui. First off, what the context menu does to the column is actually called 'enable' or 'disable' (even though it is perceived as show/hide by the user). The menu itself is implemented inside Dear ImGui (the C++ library), and it calls the function Now, one would think that Bottomline: here's a recipe to get out of this mess.
Of course this workaround might break in future versions of DearPyGui. |
Beta Was this translation helpful? Give feedback.
-
dpg.configure_item usually works to show/hide an element but not so with table column headers.
minimal code:
is this a proper way to show/hide columns at all ? What I expect is the same behavior as manually right-clicking the table header and toggling the checkmark in the context menu. However if using configure_item, the column is not hidden, rather its label is set to empty string, in the context menu it now displays "Unknown" as label, and the checkmark is still on.
Beta Was this translation helpful? Give feedback.
All reactions