Skip to content

Change background color of child window #240

Closed
@luisarandas

Description

@luisarandas

Hello all.

I would like to know how can I approach this problem using Python. This question - how to change the background color of a newly created window - has been commented in cpp ocornut/imgui#2700 ; ocornut/imgui#1289. Example:

imgui.set_next_window_bg_alpha(1.0)
imgui.core.set_next_window_position(x,y) # hardcoded
imgui.core.set_next_window_size((loop_window_width/2)-149,315)
imgui.begin("side2", True, flags=imgui.WINDOW_NO_SCROLLBAR|imgui.WINDOW_NO_RESIZE|imgui.WINDOW_NO_TITLE_BAR)
[maybe here?]
imgui.end()

Since this is a port I think it should be able to do. Although I cannot find anything related to this in the readthedocs.

Best

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions