Re: [PyQt] PyQt and Python v3
The current SIP and PyQt4 snapshots now support Python v3. The build process is exactly the same - just use the right interpreter to run configure.py. Thanks, Phil. As it's just a hobby for me, I have been holding off on learning Python until I could jump right into Python3 and Qt4. However, all the online material that I can find is for Python 2 and older versions of Qt. Is there a good tutorial for Python 3 with Qt4? The tutorial list on python.org is rather outdated! If it matters, I run Kubuntu at home so I currently have Qt 4.5 installed. Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt and Python v3
On Wed, 25 Mar 2009 09:05:28 +0200, Dotan Cohen dotanco...@gmail.com wrote: The current SIP and PyQt4 snapshots now support Python v3. The build process is exactly the same - just use the right interpreter to run configure.py. Thanks, Phil. As it's just a hobby for me, I have been holding off on learning Python until I could jump right into Python3 and Qt4. However, all the online material that I can find is for Python 2 and older versions of Qt. Is there a good tutorial for Python 3 with Qt4? The tutorial list on python.org is rather outdated! If it matters, I run Kubuntu at home so I currently have Qt 4.5 installed. Thanks! As far as using PyQt is concerned there is almost no difference between Python v2 and v3. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt and Python v3
Phil Thompson wrote: The current SIP and PyQt4 snapshots now support Python v3. The build process is exactly the same - just use the right interpreter to run configure.py. I'm still working through the examples - so far they have all run under Python v3 without any changes. oh excellent news! I didn't expect to see anything working so soon actually. How much work can we expect for getting Python 2 .sip files working on Python 3? Did you encounter many problems with hand written code? cheers, -- Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall si...@simonzone.com | http://www.simonzone.com/software/ Nijmegen, The Netherlands | ZooTV? You made the right choice. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt and Python v3
On Tue, 24 Mar 2009 19:54:05 +0100, Simon Edwards si...@simonzone.com wrote: Phil Thompson wrote: The current SIP and PyQt4 snapshots now support Python v3. The build process is exactly the same - just use the right interpreter to run configure.py. I'm still working through the examples - so far they have all run under Python v3 without any changes. oh excellent news! I didn't expect to see anything working so soon actually. How much work can we expect for getting Python 2 .sip files working on Python 3? Did you encounter many problems with hand written code? Grep the .sip files for PY_MAJOR_VERSION to see how much version dependent stuff - not a lot and (I think) mostly to do with __repr__ implementations. The main thing you will need to do is to identify any function arguments that should be interpreted as an unencoded byte stream rather than UTF-8 encoded text. I've tried to be flexible in what string conversions are allowed - it's not as simple as mapping QString to a v3 string object and char * to a v3 bytes object. I've come to the conclusion that it is a fairly easy task to write code that will run under v2.6 and v3.x without change. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt and Python v3
On Tue, 24 Mar 2009 20:31:21 +0100, Detlev Offenbach det...@die-offenbachs.de wrote: On Dienstag, 24. März 2009, Phil Thompson wrote: The current SIP and PyQt4 snapshots now support Python v3. The build process is exactly the same - just use the right interpreter to run configure.py. pyuic4 has yet to be ported - but the code it generates should run under Python v3. pyrcc4 generates code for Python v2.6 and v3. If you need to generate code for earlier versions of Python use the new -py2 flag. Note that Python v2.6 can handle both formats. I'm still working through the examples - so far they have all run under Python v3 without any changes. That is excellent news. eric4's debugger will support Python3 in the first development snapshot as well. When will QScintilla's Python bindings be made Python3 compatible? It wouldn't surprise me if it just worked - though configure.py will need some changes. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt