uix:ActionBar:ActionGroup bind to `on_dismiss` events of the dropdown

This commit is contained in:
qua-non 2013-09-22 00:28:43 +05:30
parent 788f0cdd05
commit 3c98ac717c
1 changed files with 2 additions and 0 deletions

View File

@ -272,9 +272,11 @@ class ActionGroup(ActionItem, Spinner):
def _build_dropdown(self, *largs):
if self._dropdown:
self._dropdown.unbind(on_dismiss=self._toggle_dropdown)
self._dropdown.dismiss()
self._dropdown = None
self._dropdown = self.dropdown_cls()
self._dropdown.bind(on_dismiss=self._toggle_dropdown)
def _update_dropdown(self, *largs):
pass