Skip to content

pushbase.note_layout_switcher

Classes

class ContextualButtonControl(ButtonControl)

Bases: ButtonControl

class State(ButtonControl.State)

Bases: ButtonControl.State

on_context_changed(self)

class ModeSwitcherBase(Component, Messenger)

Bases: Component, Messenger

Attributes

  • locked_mode = None

__init__(self, *a, **k)

release_alternative_layout(self)

_should_unlock(self)

cycle_button(self, button)

cycle_button(self, button)

cycle_button(self, button)

lock_button(self, button)

_lock_alternative_mode(self, mode)

_unlock_alternative_mode(self, locked_mode)

on_enabled_changed(self)

class NoteLayoutSwitcher(ModeSwitcherBase)

Bases: ModeSwitcherBase

__init__(self, switch_note_mode_layout, get_current_alternative_layout_mode, *a, **k)

_should_unlock(self)

_lock_alternative_mode(self, mode)

_unlock_alternative_mode(self, _mode)

_cycle_alternative_note_layout(self)