mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Use relative import for _imagingtk
This commit is contained in:
parent
c731513318
commit
5820716eb3
|
@ -28,9 +28,7 @@
|
|||
try:
|
||||
import tkinter
|
||||
except ImportError:
|
||||
import Tkinter
|
||||
tkinter = Tkinter
|
||||
del Tkinter
|
||||
import Tkinter as tkinter
|
||||
|
||||
from PIL import Image
|
||||
|
||||
|
@ -185,7 +183,7 @@ class PhotoImage:
|
|||
except tkinter.TclError as v:
|
||||
# activate Tkinter hook
|
||||
try:
|
||||
import _imagingtk
|
||||
from . import _imagingtk
|
||||
try:
|
||||
_imagingtk.tkinit(tk.interpaddr(), 1)
|
||||
except AttributeError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user