~ubuntu-branches/ubuntu/wily/python-imaging/wily

« back to all changes in this revision

Viewing changes to Scripts/viewer.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-31 20:49:20 UTC
  • mfrom: (27.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130131204920-b5zshy6vgfvdionl
Tags: 1.1.7+1.7.8-1ubuntu1
Rewrite build dependencies to allow cross builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# $Id$
4
4
#
5
5
 
6
 
from Tkinter import *
 
6
from __future__ import print_function
 
7
 
 
8
try:
 
9
    from tkinter import *
 
10
except ImportError:
 
11
    from Tkinter import *
 
12
 
7
13
from PIL import Image, ImageTk
8
14
 
9
15
#
31
37
    import sys
32
38
 
33
39
    if not sys.argv[1:]:
34
 
        print "Syntax: python viewer.py imagefile"
 
40
        print("Syntax: python viewer.py imagefile")
35
41
        sys.exit(1)
36
42
 
37
43
    filename = sys.argv[1]