From ed25538bcb15c4de1cac3344fc1d01ebc6e431a5 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Mon, 10 Jun 2019 14:59:43 +0200 Subject: [PATCH] [core/popup_v2] Add logging if tkinter is not found --- bumblebee/popup_v2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bumblebee/popup_v2.py b/bumblebee/popup_v2.py index 0894d88..04a7554 100644 --- a/bumblebee/popup_v2.py +++ b/bumblebee/popup_v2.py @@ -1,5 +1,7 @@ """Pop-up menus.""" +import logging + try: import Tkinter as tk except ImportError: @@ -7,7 +9,7 @@ except ImportError: try: import tkinter as tk except ImportError: - pass + logging.warning("failed to import tkinter - bumblebee popups won't work!") import functools