def window_resize( x, y ): print('resize',x,y) C = get_context() win = blender.CTX_wm_window( C ) blender.wm_window_lower( win ) blender.WM_setprefsize( 0, 0, x,y ) blender.wm_window_set_size( win ) blender.wm_window_raise( win )
def window_lower(): C = get_context() win = blender.CTX_wm_window( C ) blender.wm_window_lower( win )