mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +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()
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print("Usage: painter file")
|
||||
sys.exit(1)
|
||||
|
||||
im = Image.open(sys.argv[1])
|
||||
|
||||
if im.mode != "RGB":
|
||||
|
|
Loading…
Reference in New Issue
Block a user