-
Hi, Is there a solution for adding windows padding? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Well, we have: def push_style_var(idx: StyleVar, val: ImVec2) -> None:
...
# Where
StyleVar = int So, it requires an int which you can get with: imgui.push_style_var(imgui.Style.window_padding.value ,ImVec2(50,50)) |
Beta Was this translation helpful? Give feedback.
-
Thanks for your fast reply! |
Beta Was this translation helpful? Give feedback.
I think you want to use the
StyleVar_
and notStyle
, at least that's how I do it in my Python app.Also, the
ImVec
types don't have to be used directly, you can use a Python tuple or list with the right number of elements instead.From my code base: