mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-24 15:50:33 +03:00
Added Usage message to painter script
This commit is contained in:
parent
3b121b4513
commit
7e5df09fa9
|
@ -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