tkinter.TclError: invalid command name "table" tkinter.TclError: invalid command name "table" tkinter tkinter

tkinter.TclError: invalid command name "table"


TkTableCalendar requies the tktable module, which you have installed in lib-tk (3rd party modules usually go into lib/site-packages) as indicated by this part of the traceback.

File "C:\Python27\lib\lib-tk\tktable.py", line 118, in __init__Tkinter.Widget.__init__(self, master, 'table', kw)

The tktable module requires that your tcl/tk installation have the tktable extension. That extension defines the 'table' widget. It is not part of the standard tcl/tk that is installed with Python on Windows. Hence

_tkinter.TclError: invalid command name "table"

The tktable source code (probably a mixture of tcl and C) is hosted at SourceForge. This page says that it is part of the ActiveState Batteries Included distribution. I don't know if the free version of AS tcl/tk has all the 'batteries'. And I don't know how to replace the tcl/tk installation you already have with a new one. I personally would use an alternative if possible.