Skip to content

Adding windows padding #245

Answered by bgribble
jochemcb asked this question in Q&A
Aug 27, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I think you want to use the StyleVar_ and not Style, 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:

    imgui.push_style_var(imgui.StyleVar_.window_padding, (8, 8))

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@bgribble
Comment options

Answer selected by jochemcb
@jochemcb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants