warning: The answer isn't pretty.
If you follow this issue, you'll see that the problem is that ActionButton
s event's aren't mapped. The solution involves giving the ActionGroup
an id so that it can be referenced, changing the mode to spinner
(which you've already done), and connecting the ActionGroup._dropdown
s select
event to your callback:
#menu-line on the top
ActionBar:
size_hint: 1, None
ActionView:
use_separator: True
ActionPrevious:
title: 'title'
with_previous: False
disabled: True
ActionButton:
text: 'button'
ActionGroup:
id: action_group
mode: 'spinner'
text: 'Languages'
ActionButton:
text: 'German'
on_release: action_group._dropdown.select(root.do_something())
ActionButton:
text: 'English'
on_release: action_group._dropdown.select(root.do_something())