[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] TypeError: argument 1 of QsciScintilla() has an invalid
From:       Detlev Offenbach <detlev () die-offenbachs ! de>
Date:       2006-11-21 18:35:39
Message-ID: 200611211935.39878.detlev () die-offenbachs ! de
[Download RAW message or body]

Hi,

that type is correct and should work because QDockWidget is inheriting from 
QWidget, which is the correct type for the parent argument.

Detlev

On Monday 20 November 2006 04:59, Daryl Dusheiko wrote:
>  Hi the type is:
>  <class 'PyQt4.QtGui.QDockWidget'>
>
>  Detlev Offenbach wrote:
> Hallo,
>
> unfortunately I cannot reproduce the problem. Cann you please try to
> determine the type of "parent" in the file given below?
>
> Regards,
> Detlev
>
> On Thursday 16 November 2006 10:49, Daryl Dusheiko wrote:
>
> Hi
>
> I am using Ubuntu (edgy). I have manually built and installed the
> following: eric4-snapshot-20061112
> PyQt-x11-gpl-4.1
> QScintilla2-1.71-gpl-2-snapshot-20061104
> sip-4.5
>
> Python 2.4 was installed as part of the distro.
>
>
> When I start eric4 I get the following error:
>
>
> Warning: translation file 'qt_en_AU'could not be loaded.
> Using default.
> Warning: translation file 'eric4_en_AU'could not be loaded.
> Using default.
> Warning: translation file 'qscintilla_en_AU'could not be loaded.
> Using default.
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/site-packages/eric4/eric4.py", line 155, in ?
>     main()
>   File "/usr/lib/python2.4/site-packages/eric4/eric4.py", line 140, in main
>     mw = UserInterface(loc, splash)
>   File "/usr/lib/python2.4/site-packages/eric4/UI/UserInterface.py",
> line 229, in __init__
>     self.__createLayout(debugServer)
>   File "/usr/lib/python2.4/site-packages/eric4/UI/UserInterface.py",
> line 657, in __createLayout
>     self.shell = Shell(debugServer, self.viewmanager, self.shellDock)
>   File "/usr/lib/python2.4/site-packages/eric4/QScintilla/Shell.py",
> line 41, in __init__
>     QsciScintillaCompat.__init__(self, parent)
>   File
> "/usr/lib/python2.4/site-packages/eric4/QScintilla/QsciScintillaCompat.py",
> line 52, in __init__
>     QsciScintilla.__init__(self, parent)
> TypeError: argument 1 of QsciScintilla() has an invalid type
>
>
> Cheers
>
> Daryl

-- 
Detlev Offenbach
detlev@die-offenbachs.de

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic