Way to grey out input box #1548
Replies: 7 comments
-
Hey @Exterminator921 you can dpg.disable_item(tak or item) |
Beta Was this translation helpful? Give feedback.
-
How can I make it dynamic ?
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
It doesn't work at all, it provokes errors and even when I try to fix them it doesn't work. |
Beta Was this translation helpful? Give feedback.
-
Then join the discord and we can discuss there. |
Beta Was this translation helpful? Give feedback.
-
To still end up needing to add a disabled theme unfortunately ATM. |
Beta Was this translation helpful? Give feedback.
-
For anyone in the future looking at how to do this: with dpg.theme() as disabled_theme:
with dpg.theme_component(dpg.mvButton, enabled_state=False, parent=light_theme):
dpg.add_theme_color(dpg.mvThemeCol_Text, [128, 128, 128])
dpg.add_theme_color(dpg.mvThemeCol_Button, [165, 178, 194])
dpg.add_theme_color(dpg.mvThemeCol_ButtonHovered, [165, 178, 194])
dpg.add_theme_color(dpg.mvThemeCol_ButtonActive, [165, 178, 194]) In my case I was using the light theme from DearPyGui_Ext, so after assigning Obviously change what you are coloring, in my case I was adding disabled theming for buttons that matched the light theme. |
Beta Was this translation helpful? Give feedback.
-
Hey, I made a program but I want to grey out the input box when the fullscreen button is checked. How can I do it ?
Beta Was this translation helpful? Give feedback.
All reactions