mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Merge pull request #3100 from radarhere/imagetk
Change test_imagetk to run on Python 3
This commit is contained in:
commit
48c8f1f219
|
@ -1,10 +1,13 @@
|
|||
from helper import unittest, PillowTestCase, hopper
|
||||
from helper import unittest, PillowTestCase, hopper, py3
|
||||
from PIL import Image
|
||||
|
||||
|
||||
try:
|
||||
from PIL import ImageTk
|
||||
import Tkinter as tk
|
||||
if py3:
|
||||
import tkinter as tk
|
||||
else:
|
||||
import Tkinter as tk
|
||||
dir(ImageTk)
|
||||
HAS_TK = True
|
||||
except (OSError, ImportError) as v:
|
||||
|
|
Loading…
Reference in New Issue
Block a user