def METHOD_NAME(self):
    main_box = toga.Box(style=Pack(direction=COLUMN))
    self.hswitch = toga.Switch(
        "Horizontal",
        value=False,
        on_change=self.handle_hscrolling,
    )
    self.vswitch = toga.Switch(
        "Vertical",
        value=True,
        on_change=self.handle_vscrolling,
    )
    self.wide_switch = toga.Switch(
        "Wide",
        value=True,
        on_change=lambda widget: self.update_content(),
    )
    self.tall_switch = toga.Switch(
        "Tall",
        value=True,
        on_change=lambda widget: self.update_content(),
    )
    main_box.add(
        toga.Box(children=[self.hswitch, self.vswitch]),
        toga.Box(children=[self.wide_switch, self.tall_switch]),
    )
    self.inner_box = toga.Box(
        style=Pack(direction=COLUMN, padding=10, background_color="yellow")
    )
    self.scroller = toga.ScrollContainer(
        horizontal=self.hswitch.value,
        vertical=self.vswitch.value,
        on_scroll=self.on_scroll,
        style=Pack(flex=1, padding=10, background_color="pink"),
    )
    self.update_content()
    self.scroller.content = self.inner_box
    main_box.add(self.scroller)
    self.main_window = toga.MainWindow(self.name, size=(400, 700))
    self.main_window.content = main_box
    self.main_window.show()
    self.commands.add(
        toga.Command(
            self.toggle_up,
            "Toggle Up",
            shortcut=toga.Key.MOD_1 + toga.Key.UP,
            group=toga.Group.COMMANDS,
            order=1,
        ),
        toga.Command(
            self.toggle_down,
            "Toggle Down",
            shortcut=toga.Key.MOD_1 + toga.Key.DOWN,
            group=toga.Group.COMMANDS,
            order=2,
        ),
        toga.Command(
            self.toggle_left,
            "Toggle Left",
            shortcut=toga.Key.MOD_1 + toga.Key.LEFT,
            group=toga.Group.COMMANDS,
            order=3,
        ),
        toga.Command(
            self.toggle_right,
            "Toggle Right",
            shortcut=toga.Key.MOD_1 + toga.Key.RIGHT,
            group=toga.Group.COMMANDS,
            order=4,
        ),
    )