GUI library for python 3
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.
scru
Posting Virtuoso
1,629 posts since Feb 2007
Reputation Points: 975
Solved Threads: 140
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.
Ene Uran
Posting Virtuoso
1,723 posts since Aug 2005
Reputation Points: 625
Solved Threads: 213
I completely forgot about Tkinter. It would probably work for the time being.
scru
Posting Virtuoso
1,629 posts since Feb 2007
Reputation Points: 975
Solved Threads: 140
hmm, which do you guys use often and prefer?
revenge2
Junior Poster in Training
79 posts since Feb 2007
Reputation Points: 10
Solved Threads: 2
I prefer wxpython.
Honestly I will never move to Python 3 until wxpython comes out!
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
I happen to prefer pyQt, which isn't out for python 3 yet.
scru
Posting Virtuoso
1,629 posts since Feb 2007
Reputation Points: 975
Solved Threads: 140
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.
scru
Posting Virtuoso
1,629 posts since Feb 2007
Reputation Points: 975
Solved Threads: 140
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.
Gribouillis
Posting Maven
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
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 wrapperTkinter.py was called, now Tkinter has turned into a more modern package with the directory name tkinter that uses _init__.py as the wrapper.
Ene Uran
Posting Virtuoso
1,723 posts since Aug 2005
Reputation Points: 625
Solved Threads: 213