I am currently using python 2.7 in mac system. I think tkinter would be a problem since I use Tkinter for Python 2.7. But I do not know the corresponding part of tkintertable for python 2.7
Thank you Pooja On Thu, Mar 2, 2017 at 9:25 AM, Pooja Bhalode <poojabhalod...@gmail.com> wrote: > 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 > table. > > 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 > > Exception: > > Traceback (most recent call last): > > File > "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", > line 215, in main > > status = self.run(options, args) > > File > "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", > line 342, in run > > prefix=options.prefix_path, > > File > "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", > line 784, in install > > **kwargs > > File > "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", > line 851, in install > > self.move_wheel_files(self.source_dir, root=root, prefix=prefix) > > File > "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", > line 1064, in move_wheel_files > > isolated=self.isolated, > > File "/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) > > File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", > line 316, in clobber > > ensure_dir(destdir) > > File > "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", > line 83, in ensure_dir > > os.makedirs(path) > > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", > line 157, in makedirs > > mkdir(name, mode) > > OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site- > packages/Pmw' > > > 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 > columns. > > > Please let me know. > > Thank you > > > Pooja > > On Wed, Mar 1, 2017 at 8:27 PM, Alan Gauld via Tutor <tutor@python.org> > wrote: > >> 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@python.org >> To unsubscribe or change subscription options: >> https://mail.python.org/mailman/listinfo/tutor >> > > _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor