forked from josch/plakativ
plakativ.py: use ImportError to cater for Python 2
This commit is contained in:
parent
1e0bde7027
commit
970ebb6659
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import fitz
|
||||||
try:
|
try:
|
||||||
import tkinter
|
import tkinter
|
||||||
import tkinter.filedialog
|
import tkinter.filedialog
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
# dummy classes so that this also loads without tkinter
|
# dummy classes so that this also loads without tkinter
|
||||||
class tkinter:
|
class tkinter:
|
||||||
class Frame:
|
class Frame:
|
||||||
|
|
Loading…
Reference in a new issue