Re: [PyQt] Question about the PyQt future (PyQt5)

2013-03-26 Thread Detlev Offenbach
Hello Phil,

thanks for the answers. Work is in progress to make eric5 and all it's plug-ins 
compatible with 
Python2. Once that is accomplished, support for eric4 would be dropped starting 
with the next 
stable eric5 release (whenever that will be after Py2 compatibility is 
reached). One future 
step in eric development could be to port it to PyQt5. Hence my interest in 
your plans. 
Meanwhile I got a few more questions.

1) Will PyQt5 and PyQt4 be API compaitble (i.e. exchangable) as long as only 
stuff that is 
covered by PyQt4 is used?
2) Will PyQt4 support Qt5 after the release of PyQt5 or will that be dropped?
3) What could be the benefit switch eric5 over to PyQt5?

Btw, did you realize, that it is now a bit over ten years you handed over the 
'broken' eric 
debugger to me and pulled me into the business? It was on 24.11.2002, when the 
first alpha 
release of eric3, the first eric IDE, was announced.

Regards,
Detlev

On Monday 25 March 2013, 18:58:11 Phil Thompson wrote:
 On Mon, 25 Mar 2013 09:23:07 +0100, Detlev Offenbach
 
 det...@die-offenbachs.de wrote:
  Hello Phil,
  
  I am aware, that there is no definitive plan for PyQt5 yet. However, I
  would like to ask two questions. The answer to these could influence
  the current plans and work for eric5.
  
  Will PyQt5 be usable with Python2 and 3 or Python3 only?
 
 I haven't decided yet. I may develop and test with Python3 only but treat
 reported problems with Python2 as bugs.
 
  For how long will PyQt4 and PyQt5 be maintained in parallel?
 
 I have no plans to drop PyQt4 and I'm being very careful to make sure that
 maintaining it will not be a significant effort.
 
 Phil
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Question about the PyQt future (PyQt5)

2013-03-26 Thread Phil Thompson
On Tue, 26 Mar 2013 10:59:44 +0100, Detlev Offenbach
det...@die-offenbachs.de wrote:
 Hello Phil,
 
 thanks for the answers. Work is in progress to make eric5 and all it's
 plug-ins compatible with 
 Python2. Once that is accomplished, support for eric4 would be dropped
 starting with the next 
 stable eric5 release (whenever that will be after Py2 compatibility is
 reached). One future 
 step in eric development could be to port it to PyQt5. Hence my interest
 in your plans. 
 Meanwhile I got a few more questions.
 
 1) Will PyQt5 and PyQt4 be API compaitble (i.e. exchangable) as long as
 only stuff that is 
 covered by PyQt4 is used?

Not necessarily. If there is a better (but incompatible) way of doing
something I'll change it for PyQt5.

 2) Will PyQt4 support Qt5 after the release of PyQt5 or will that be
 dropped?

It will continue to support Qt5 - but won't support any new features of
Qt5.

 3) What could be the benefit switch eric5 over to PyQt5?

Only if there are new features introduced in Qt5 that you want to use.

I think PyQt4 on Qt5 will be much more important than PyQt5 for some time.

 Btw, did you realize, that it is now a bit over ten years you handed
over
 the 'broken' eric 
 debugger to me and pulled me into the business? It was on 24.11.2002,
when
 the first alpha 
 release of eric3, the first eric IDE, was announced.

Congratulations! These things can get a bit out of hand can't they...

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QTextBlockUserData forgotten in SIP 4.14.3, bug?

2013-03-26 Thread Phil Thompson
On Fri, 22 Mar 2013 20:50:40 +0100, Julian Taylor
jtaylor.deb...@googlemail.com wrote:
 I'll make a new release sooner rather than later. I do invite people to
 test current snapshots before making a release but I suspect people
 rarely
 do.
 
 Phil
 
 hi,
 the ipython qtconsole 0.13.1 and current git head has this issue since
 4.10 too and it is not fixed by the latest snapshot.
 
 $ python -c from PyQt4.pyqtconfig import Configuration; print
 Configuration().pyqt_version_str
 snapshot-4.10.1-19c32f448665
 
 
 $ ipython qtconsole
 
 if 1:
   print 1
 
 and you get lots of tracebacks of this type:
 
 Traceback (most recent call last):
   File

/usr/local/lib/python2.7/dist-packages/IPython/frontend/qt/console/frontend_widget.py,
 line 59, in highlightBlock
 super(FrontendHighlighter, self).highlightBlock(string)
   File

/usr/local/lib/python2.7/dist-packages/IPython/frontend/qt/console/pygments_highlighter.py,
 line 107, in highlightBlock
 self._lexer._saved_state_stack = prev_data.syntax_stack
 AttributeError: 'QTextBlockUserData' object has no attribute
'syntax_stack'
 
 
 I tried the latest snapshot
 (PyQt-x11-gpl-snapshot-4.10.1-19c32f448665.tar.gz, what I believe is the
 relevant diff is attached) but it did not fix the issue.
 Is this another bug or an intentional change?

It's an IPython bug. In PygmentsHighlighter.__init__() in
pygments_highlighter.py change...

self._document = QtGui.QTextDocument()

...to...

self._document = self.document()

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt