[Tutor] Tables in Tkinter

Pooja Bhalode poojabhalode11 at gmail.com
Thu Mar 2 09:25:12 EST 2017

Hi Alan,

Sorry for being ambiguous earlier. I can make it more clear in this email.
I am planning on creating a scrollable table (grid of values) with title
labels for each column and rows present in it and a title for the overall

I saw it online that to create a table in tkinter, I can use a built in
module tkintertable but would have to download it.
when I tried to install tkintertable using pip: i got the following errors:

Poojas-MacBook-Pro:~ poojabhalode$ pip install tkintertable

Collecting tkintertable

Collecting Pmw (from tkintertable)

Installing collected packages: Pmw, tkintertable


Traceback (most recent call last):

line 215, in main

    status = self.run(options, args)

line 342, in run


line 784, in install


line 851, in install

    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)

line 1064, in move_wheel_files


"/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line
345, in move_wheel_files

    clobber(source, lib_dir, True)

"/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line
316, in clobber


line 83, in ensure_dir


line 157, in makedirs

    mkdir(name, mode)

OSError: [Errno 13] Permission denied:

After this, if I tried to import

>From tkintertable import TableCanvas

It gave me an error saying no module tkintertable found.

Can you please suggest me as to what I can do and how I can create the
table required? I also want to create another table wherein there would be
scrollable rows and columns. There would be one main column, which would be
subdivided into three and then the three columns subdivided into more

Please let me know.

Thank you


On Wed, Mar 1, 2017 at 8:27 PM, Alan Gauld via Tutor <tutor at python.org>

> On 01/03/17 23:40, Pooja Bhalode wrote:
> > I am trying to create normal tables in Tkinter.
> First you need to define what a "normal table" is.
> There is no such thing in standard Tkinter, so any
> kind of table is not normal.
> Do you want a simple grid of values?
> Do you want a spreadsheet type grid with editable cells?
> Do you want a live link to an underlying data store?
> Do you want it scrollable? Or re-sizeable? within the form?
> All of these features are "normal" for tables in
> different GUI toolkits, but none of them are normal
> in Tkinter.
> > as to what functions I can use, I looked into tkintertable, but that does
> > not seem to work for me.
> What does "not work" mean?
> Did it display on screen?
> Did it have empty values?
> Were the values not editable (assuming you wanted them to be?
> You need to be much more specific when describing problems.
> > I tried installing it but it gave me a bunch of
> > errors while installation and does not work.
> How did you install it?
> What were the errors?
> What does "not work" mean? (How could it work if the
> installation gave "a bunch of errors"?)
> > Is there any other simpler way for creating table and configuring them as
> > per needed?
> It depends what you want. Tell us what you are trying
> to achieve and we may be able to suggest something.
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.amazon.com/author/alan_gauld
> Follow my photo-blog on Flickr at:
> http://www.flickr.com/photos/alangauldphotos
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list