Merge pull request #1482 from radarhere/painter

Added Usage message to painter script
This commit is contained in:
Hugo van Kemenade 2015-10-10 11:04:31 +03:00
commit 495dca4149

View File

@ -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":