This replaces API for accessing the uiLayout fixed_size, red_alert, root_panel, search_weight and width properties with methods, following uiLayout refactors and the Python API naming Pull Request: https://projects.blender.org/blender/blender/pulls/140673