summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/GUI/xasy.py
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote/GUI/xasy.py')
-rwxr-xr-xMaster/texmf-dist/asymptote/GUI/xasy.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Master/texmf-dist/asymptote/GUI/xasy.py b/Master/texmf-dist/asymptote/GUI/xasy.py
index ffca16a1e2d..f160404c19a 100755
--- a/Master/texmf-dist/asymptote/GUI/xasy.py
+++ b/Master/texmf-dist/asymptote/GUI/xasy.py
@@ -10,8 +10,11 @@
############################################################################
import getopt,sys,signal
-from Tkinter import *
import xasyMainWin
+if sys.version_info >= (3, 0):
+ from tkinter import *
+else:
+ from Tkinter import *
signal.signal(signal.SIGINT,signal.SIG_IGN)
@@ -22,11 +25,11 @@ try:
if(len(opts)>=1):
mag = float(opts[0][1])
except:
- print "Invalid arguments."
- print "Usage: xasy.py [-x magnification] [filename]"
+ print ("Invalid arguments.")
+ print ("Usage: xasy.py [-x magnification] [filename]")
sys.exit(1)
if(mag <= 0.0):
- print "Magnification must be positive."
+ print ("Magnification must be positive.")
sys.exit(1)
if(len(args)>=1):
app = xasyMainWin.xasyMainWin(root,args[0],mag)