-2

This is the error I am getting when I try to run the code.

   from tkintertable.Tables import *
  File "C:\Python33\lib\site-packages\tkintertable\Tables.py", line 620
    print 'found in',row,col
                   ^
SyntaxError: invalid syntax

This is the code

from tkinter import *
from tkintertable.Tables import *
from tkintertable.TableModels import *

master = Tk()
tframe = Frame(master)
tframe.pack()
table = TableCanvas(tframe)
table.createTableFrame()

Any ideas?

DotNet NF
  • 805
  • 1
  • 6
  • 14
  • 3
    tkintertable is [not currently compatible with Python 3](http://code.google.com/p/tkintertable/issues/detail?id=9). – Kevin Jun 06 '14 at 12:21
  • Sounds like you are trying to import a Python 2 module into Python 3. As the links in the other comments will show you this will lead to problems as the syntax is not compatible between these versions of Python. – shuttle87 Jun 06 '14 at 14:32

1 Answers1

1

In Python 3 the print has become a function rather than a statement:

print("hello")

instead of

print "hello"

See http://legacy.python.org/dev/peps/pep-3105/ for details.

ebarr
  • 7,704
  • 1
  • 29
  • 40