Override menu shell deactivate to go through the palette.
This commit is contained in:
parent
6ae3846415
commit
1145f0f99c
@ -396,6 +396,9 @@ class _Menu(_sugaruiext.Menu):
|
|||||||
_sugaruiext.Menu.do_insert(self, item, position)
|
_sugaruiext.Menu.do_insert(self, item, position)
|
||||||
self._palette._update_separator()
|
self._palette._update_separator()
|
||||||
|
|
||||||
|
def do_deactivate(self):
|
||||||
|
self._palette._hide()
|
||||||
|
|
||||||
class _PopupAnimation(animator.Animation):
|
class _PopupAnimation(animator.Animation):
|
||||||
def __init__(self, palette):
|
def __init__(self, palette):
|
||||||
animator.Animation.__init__(self, 0.0, 1.0)
|
animator.Animation.__init__(self, 0.0, 1.0)
|
||||||
|
Loading…
Reference in New Issue
Block a user