[PyKDE] eric3 still not working with recent PyQt and sip snapshots

Detlev Offenbach detlev at die-offenbachs.de
Sat Dec 31 13:59:39 GMT 2005


Am Samstag, 31. Dezember 2005 14:15 schrieb Andreas Pakulat:
> On 31.12.05 11:35:27, Andreas Pakulat wrote:
> > eric3 unfortunately still is not working with Python 2.3.5 and latest
> > snapshots from sip and PyQt. It starts and there are no messages in the
> > xterm, but when creating a new file I don't get an editor - the area for
> > the editor is left grey and it seems paint events on that area don't get
> > executed (i.e. if menus are overlapping it, they stay after closing the
> > menu).
>
> Actually, the python version was 2.4.2 not 2.3.5.
>
> With 2.3.5 I get the already mentioned error about QextScintilla
>
> andreas at morpheus:~>eric3
> Traceback (most recent call last):
>   File
> "/home/andreas/python2.3/lib/python2.3/site-packages/eric3/eric3.py", line
> 137, in ? main()
>   File
> "/home/andreas/python2.3/lib/python2.3/site-packages/eric3/eric3.py", line
> 123, in main mw = UserInterface(loc, splash)
>   File
> "/home/andreas/python2.3/lib/python2.3/site-packages/eric3/UI/UserInterface
>.py", line 192, in __init__ self.createLayout(dbs)
>   File
> "/home/andreas/python2.3/lib/python2.3/site-packages/eric3/UI/UserInterface
>.py", line 553, in createLayout self.shell = Shell(dbs, self.viewmanager,
> self.hSplitter2)
>   File
> "/home/andreas/python2.3/lib/python2.3/site-packages/eric3/QScintilla/Shell
>.py", line 41, in __init__ QextScintillaCompat.__init__(self,parent)
>   File
> "/home/andreas/python2.3/lib/python2.3/site-packages/eric3/QScintilla/QextS
>cintillaCompat.py", line 55, in __init__ self.clearStyles()
>   File
> "/home/andreas/python2.3/lib/python2.3/site-packages/eric3/QScintilla/QextS
>cintillaCompat.py", line 103, in clearStyles QextScintilla.STYLE_DEFAULT,
> colorGroup.text())
> TypeError: argument 3 of QextScintillaBase.SendScintilla() has an invalid
> type

I have checked this and I cannot see anything obviously wrong. Could you 
please check your installation (specially the contents of your PyQt 
installation). Please try the following steps in a python interpreter.

from qt import *
import sys

app = QApplication(sys.argv)
pal = qApp.palette()
act = pal.active()
col = act.text()
print type(pal)		# should give QPalette
print type(act)		# should give QColorGroup
print type(col)		# should give QColor

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de




More information about the PyQt mailing list