-1

Is there a gui library that has already been ported to python 3? I'm interested in using some of the new python 3 features in the back end for my project.

5
Contributors
8
Replies
9
Views
8 Years
Discussion Span
Last Post by Ene Uran
Featured Replies
  • [QUOTE=scru;788225]Is there a gui library that has already been ported to python 3? I'm interested in using some of the new python 3 features in the back end for my project.[/QUOTE]For the time being you will have to use good old Tkinter that ships with Python3.0. Read More

1

Is there a gui library that has already been ported to python 3? I'm interested in using some of the new python 3 features in the back end for my project.

For the time being you will have to use good old Tkinter that ships with Python3.0.

0

I completely forgot about Tkinter. It would probably work for the time being.

0

There seems to be no Tkinter in python three either, unless I'm doing it wrong:

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    import Tkinter
ImportError: No module named Tkinter

EDIT: Back in my Tkinter days, I was used to importing Tkinter, not tkinter. Problem solved.

0

Here is my console output on Mandriva linux 2009:

Python 3.0 (r30:67503, Dec  9 2008, 13:32:06)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
>>>

I think that all library module names have been converted to lowercase in python 3.0.

0

Here is my console output on Mandriva linux 2009:

Python 3.0 (r30:67503, Dec  9 2008, 13:32:06)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
>>>

I think that all library module names have been converted to lowercase in python 3.0.

Good observation!
Before Python 3.0 the wrapper Tkinter.py was called, now Tkinter has turned into a more modern package with the directory name tkinter that uses _init__.py as the wrapper.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.