Merge pull request #548 from KurtJacobson/fix_ImageTk_import

bug: fix import of ImageTk so that it works with python-pil
This commit is contained in:
jethornton 2019-01-08 09:57:57 -06:00 committed by GitHub
commit 77309ebf92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ gettext.install("linuxcnc", localedir=os.path.join(BASE, "share", "locale"), uni
try:
from PIL import Image
except:
except ImportError:
import Image
import numpy.core
@ -495,7 +495,12 @@ class ArcEntryCut:
def ui(im, nim, im_name):
import Tkinter
try:
from PIL import ImageTk
except ImportError:
import ImageTk
import pickle
import nf