def METHOD_NAME(self, *args):
    self.Freeze()
    def sort_priority(ref):
        prop, kwargs = ref
        return getattr(prop, "priority") if hasattr(prop, "priority") else 0
    pages_to_instance = list()
    for prop, kwargs in self.context.lookup_all("simpleui/.*"):
        if kwargs is None:
            kwargs = dict()
        pages_to_instance.append((prop, kwargs))
    pages_to_instance.sort(key=sort_priority)
    for page, kwargs in pages_to_instance:
        page_panel = page(
            self.notebook_main, wx.ID_ANY, context=self.context, **kwargs
        )
        try:
            name = page.name
        except AttributeError:
            name = page_panel.__class__.__name__
        self.notebook_main.AddPage(page_panel, _(name))
        self.add_module_delegate(page_panel)
        self.panel_instances.append(page_panel)
        try:
            page_panel.pane_show()
        except AttributeError:
            pass
        page_panel.Layout()
        try:
            page_panel.SetupScrolling()
        except AttributeError:
            pass
    self.Layout()
    self.Thaw()