Created
May 28, 2015 22:40
-
-
Save nrbrd/f1f35354cad92135972b to your computer and use it in GitHub Desktop.
Get ActionGroup from ActionButton - Kivy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomActionView(ActionView): | |
def get_group(self, item): | |
'''Get the ActionGroup of a item | |
''' | |
for group in self._list_action_group: | |
if item in group.list_action_item: | |
return group | |
return None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment