Merge pull request #391 from bbernhard/improve_missing_tkinter

improved error handling
This commit is contained in:
tobi-wan-kenobi 2019-05-31 20:19:30 +02:00 committed by GitHub
commit cc6fa5a3f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,7 @@
"""Pop-up menus.""" """Pop-up menus."""
import logging
try: try:
import Tkinter as tk import Tkinter as tk
except ImportError: except ImportError:
@ -7,9 +9,7 @@ except ImportError:
try: try:
import tkinter as tk import tkinter as tk
except ImportError: except ImportError:
pass logging.warning("failed to import tkinter - bumblebee popups won't work!")
import logging
class PopupMenu: class PopupMenu:
"""The popup-menu.""" """The popup-menu."""