Merge pull request #391 from bbernhard/improve_missing_tkinter
improved error handling
This commit is contained in:
commit
cc6fa5a3f3
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
"""Pop-up menus."""
|
||||
|
||||
import logging
|
||||
|
||||
try:
|
||||
import Tkinter as tk
|
||||
except ImportError:
|
||||
|
@ -7,9 +9,7 @@ except ImportError:
|
|||
try:
|
||||
import tkinter as tk
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import logging
|
||||
logging.warning("failed to import tkinter - bumblebee popups won't work!")
|
||||
|
||||
class PopupMenu:
|
||||
"""The popup-menu."""
|
||||
|
|
Loading…
Reference in a new issue