开发者

PyGTK, how can I lock a window so it cannot be resized?

开发者 https://www.devze.com 2022-12-17 03:12 出处:网络
I am looking fo开发者_C百科r 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 wi

I am looking fo开发者_C百科r 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.


Perhaps you could set_size_request() with the current window size (from window_get_size()) before you call set_resizable()?


You can use this:

window.set_geometry_hints(window, min_width, min_height, max_width, max_height)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号