From 6deb80eddadf3329b2cb2c62c516df545e62682e Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Wed, 3 Jul 2019 18:52:12 +0200 Subject: [PATCH] [core/popup_v2] Destroy menu on leave When mouse leaves the menu, destroy it. --- bumblebee/popup_v2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bumblebee/popup_v2.py b/bumblebee/popup_v2.py index 04a7554..7d0ad50 100644 --- a/bumblebee/popup_v2.py +++ b/bumblebee/popup_v2.py @@ -20,6 +20,7 @@ class PopupMenu(object): self._root.withdraw() self._menu = tk.Menu(self._root) self._menu.bind("", self._on_focus_out) + self._menu.bind("", self._on_focus_out) def _on_focus_out(self, event=None): self._root.destroy()