[Kde-bindings] [Bug 257770] New: PyKDE4: Can't create instances of KConfigSkeleton.ItemColor / ItemFont

Dennis Malcorps dennis.malcorps at gmail.com
Wed Nov 24 11:54:48 UTC 2010


https://bugs.kde.org/show_bug.cgi?id=257770

           Summary: PyKDE4: Can't create instances of
                    KConfigSkeleton.ItemColor / ItemFont
           Product: bindings
           Version: unspecified
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings at kde.org
        ReportedBy: dennis.malcorps at gmail.com


Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

The summary line pretty much sums it up. I can't create instances of neither
ItemFont nor ItemColor, python always exits saying these are abstract classes.

This error doesn't occur when instanciating items from KCoreConfigSkeleton,
though there are other bugs preventing the creation of some of them. (But this
will go into other bug reports...)


Reproducible: Always

Steps to Reproduce:
>>> from PyKDE4 import kdeui
>>> from PyQt4 import QtGui
>>> reference = QtGui.QColor()
>>> item = kdeui.KConfigSkeleton.ItemColor('group', 'key', reference)


Actual Results:  
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: PyKDE4.kdeui.ItemColor represents a C++ abstract class and cannot be
instantiated


Expected Results:  
Well, an actual KConfigSkeleton.ItemColor object...

python-qt4
version: 4.7.3-1+b1

python-kde4
version: 4:4.4.5-3

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kde-bindings mailing list