[core/popup_v2] Add logging if tkinter is not found
This commit is contained in:
parent
595847b2db
commit
ed25538bcb
1 changed files with 3 additions and 1 deletions
|
@ -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,7 +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 functools
|
import functools
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue