mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Do not start Tk if only to exit
This commit is contained in:
parent
a69e477605
commit
6f94974595
|
@ -66,12 +66,12 @@ class PaintCanvas(Canvas):
|
|||
#
|
||||
# main
|
||||
|
||||
root = Tk()
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print("Usage: painter file")
|
||||
sys.exit(1)
|
||||
|
||||
root = Tk()
|
||||
|
||||
im = Image.open(sys.argv[1])
|
||||
|
||||
if im.mode != "RGB":
|
||||
|
|
Loading…
Reference in New Issue
Block a user