You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the python bindings with hello_imgui, and trying out the borderless window feature. I was wondering if it is possible to maximize the window (like when using WindowSizeState.maximized on startup) during runtime.
This would allow me to add a maximize button to the menu bar. Minimize functionality would also be great, if it's possible.
(My use case is that I need to display a prompt if the user tries to close the application, and using borderless window gives me control over this. Plus it looks great :D)
The text was updated successfully, but these errors were encountered:
pthom
changed the title
Maximizing and/or resizing windows at runtime
Manipulate glfw windows from python when using hello-imgui
Mar 18, 2025
"""Demonstrates how to manipulate the glfw window created by HelloImGui. glfw_utils.glfw_window_hello_imgui is a function that returns the main glfw window used by HelloImGui"""fromimgui_bundleimporthello_imgui, imgui, glfw_utilsimportglfwdefgui():
imgui.text("Hello")
ifimgui.button("maximize window"):
win=glfw_utils.glfw_window_hello_imgui() # get the main glfw window used by HelloImGuiglfw.maximize_window(win)
glfw.init() # needed by glfw_utils.glfw_window_hello_imguihello_imgui.run(gui)
pthom
added
the
faq
A frequent issue, remaining opened to facilitate discoverability
label
Mar 18, 2025
Uh oh!
There was an error while loading. Please reload this page.
I am using the python bindings with hello_imgui, and trying out the borderless window feature. I was wondering if it is possible to maximize the window (like when using
WindowSizeState.maximized
on startup) during runtime.This would allow me to add a maximize button to the menu bar. Minimize functionality would also be great, if it's possible.
(My use case is that I need to display a prompt if the user tries to close the application, and using borderless window gives me control over this. Plus it looks great :D)
The text was updated successfully, but these errors were encountered: