mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Merge pull request #1482 from radarhere/painter
Added Usage message to painter script
This commit is contained in:
commit
495dca4149
|
@ -68,6 +68,10 @@ class PaintCanvas(Canvas):
|
||||||
|
|
||||||
root = Tk()
|
root = Tk()
|
||||||
|
|
||||||
|
if len(sys.argv) != 2:
|
||||||
|
print("Usage: painter file")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
im = Image.open(sys.argv[1])
|
im = Image.open(sys.argv[1])
|
||||||
|
|
||||||
if im.mode != "RGB":
|
if im.mode != "RGB":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user