Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named tktable

I'm trying to import tktable to create a simple table, but I'm getting the error below:

File "prob.py", line 7, in import tktable ImportError: No module named tktable

from tkinter import *
import tktable

root = Tk()
root.title("Probabilidade e estatistica")

table = tktable.Table(root, rows=2, cols=10)
table.pack()

root.mainloop()
like image 768
João Victor Avatar asked Nov 02 '22 21:11

João Victor


1 Answers

tktable isn't part of the standard tkinter package, meaning it's not a built-in feature.

You can download the tktable package from the Sourceforge website.

like image 186
SkyDrive26 Avatar answered Nov 15 '22 04:11

SkyDrive26