mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Revert "Use relative import for _imagingtk"
This reverts commit 5820716eb3
.
This commit is contained in:
parent
6e00a9c355
commit
de077c9d37
|
@ -28,7 +28,9 @@
|
|||
try:
|
||||
import tkinter
|
||||
except ImportError:
|
||||
import Tkinter as tkinter
|
||||
import Tkinter
|
||||
tkinter = Tkinter
|
||||
del Tkinter
|
||||
|
||||
from PIL import Image
|
||||
|
||||
|
@ -183,7 +185,7 @@ class PhotoImage:
|
|||
except tkinter.TclError as v:
|
||||
# activate Tkinter hook
|
||||
try:
|
||||
from PIL import _imagingtk
|
||||
import _imagingtk
|
||||
try:
|
||||
_imagingtk.tkinit(tk.interpaddr(), 1)
|
||||
except AttributeError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user