Git Product home page Git Product logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Support for python 3 could be great!! I cannot go over all the code and migrate 
to 2.x in order to use this so great library. My code crashes at some print 
statements

Original comment by [email protected] on 22 Apr 2014 at 3:48

from tkintertable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I'll note I got the following when I used Gentoo's gpypi script to install 
tkintertable:

 * Messages for package dev-python/tkintertable-1.1.2:

 * Syntax errors / warnings in Python modules for CPython 3.3:
 *     *** Error compiling '/usr/lib64/python3.3/site-packages/tkintertable/NumpyStats.py'...
 *     File "/usr/lib64/python3.3/site-packages/tkintertable/NumpyStats.py", line 27
 *     print 'you need numpy to do statistics'
 *     ^
 *     SyntaxError: invalid syntax
 *     
 *     *** Error compiling '/usr/lib64/python3.3/site-packages/tkintertable/Prefs.py'...
 *     File "/usr/lib64/python3.3/site-packages/tkintertable/Prefs.py", line 46
 *     print 'Did not find preferences!!!'
 *     ^
 *     SyntaxError: invalid syntax
 *     
 *     *** Error compiling '/usr/lib64/python3.3/site-packages/tkintertable/PylabPlot.py'...
 *     File "/usr/lib64/python3.3/site-packages/tkintertable/PylabPlot.py", line 29
 *     print 'you need numpy to do statistics'
 *     ^
 *     SyntaxError: invalid syntax
 *     
 *     *** Error compiling '/usr/lib64/python3.3/site-packages/tkintertable/TableModels.py'...
 *     File "/usr/lib64/python3.3/site-packages/tkintertable/TableModels.py", line 62
 *     print 'reclist does not match data keys'
 *     ^
 *     SyntaxError: invalid syntax
 *     
 *     *** Error compiling '/usr/lib64/python3.3/site-packages/tkintertable/Tables.py'...
 *     File "/usr/lib64/python3.3/site-packages/tkintertable/Tables.py", line 560
 *     print 'found in',row,col
 *     ^
 *     SyntaxError: invalid syntax
 *     
 *     *** Error compiling '/usr/lib64/python3.3/site-packages/tkintertable/TablesApp.py'...
 *     File "/usr/lib64/python3.3/site-packages/tkintertable/TablesApp.py", line 218
 *     print 'skipping'
 *     ^
 *     SyntaxError: invalid syntax
 *     
 *     *** Error compiling '/usr/lib64/python3.3/site-packages/tkintertable/Testing.py'...
 *     File "/usr/lib64/python3.3/site-packages/tkintertable/Testing.py", line 154
 *     print '%s found' %len(vals)
 *     ^
 *     SyntaxError: invalid syntax


That at least lists some line numbers, if I get a moment I might have a look 
and see if I can correct those, not that it will necessarily address all 
Python3-related issues but it's a start.

Original comment by [email protected] on 29 Sep 2014 at 12:05

from tkintertable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
Here's a first attempt at fixing up the print statements.  We'll see about the 
other Python3 issues, the patch is untested.

Original comment by [email protected] on 29 Sep 2014 at 12:18

Attachments:

from tkintertable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I admit that I'm lazy. If this gets fixed before I port the code to python3, I 
would greatly appreciate it.
If not, I am working on porting tkintertable to python 3. When I have it 
working, I'll post that fact here along with the tar bundle.

Original comment by [email protected] on 21 Nov 2014 at 8:14

from tkintertable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
[deleted comment]

from tkintertable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
[deleted comment]

from tkintertable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
After a couple of tries I finally got it.
Here is the python 3 version.

Original comment by [email protected] on 22 Nov 2014 at 4:13

Attachments:

from tkintertable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
I found this other tktable that seems to behave a little more predictably.
To use with python 3 just ust the 2to3 utility to modify 
/usr/lib/Tktable2.10/tktable.py. Then it works as expected.
Here is the URL where the project is hosted:
http://tktable.sourceforge.net/
Documentation here:
http://tktable.sourceforge.net/tktable/doc/tkTable.html

Original comment by [email protected] on 23 Nov 2014 at 5:24

Attachments:

from tkintertable.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.