I am looking for a way to lock the window. I found window.set_resizable(False)
, but that resizes the window to its requested size and then locks it. I would like to be able to resize my window, and then lock it into the size I have resized it to.
也许你可以set_size_request()
与当前窗口大小(从window_get_size()
之前调用set_resizable()
You can use this:
window.set_geometry_hints(window, min_width, min_height, max_width, max_height)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.