[Kde-bindings] [Bug 257851] New: PyKDE4: KConfigSkeleton.ItemEnum doesn't accept a list with ItemEnum.Choice2 objects as its "choice" parameter
Dennis Malcorps
dennis.malcorps at gmail.com
Thu Nov 25 07:53:44 UTC 2010
https://bugs.kde.org/show_bug.cgi?id=257851
Summary: PyKDE4: KConfigSkeleton.ItemEnum doesn't accept a list
with ItemEnum.Choice2 objects as its "choice"
parameter
Product: bindings
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
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
KConfigSkeleton.ItemEnum has two constructors. One accepts a list with
ItemEnum.Choice objects, the other accepts a list with ItemEnum.Choice2
objects, but PyKDE4 only provides the former.
Reproducible: Always
Steps to Reproduce:
>>> values = []
>>> choice = kdeui.KConfigSkeleton.ItemEnum.Choice2()
>>> choice.name = 'test1'
>>> values.append(choice)
>>> choice = kdeui.KConfigSkeleton.ItemEnum.Choice2()
>>> choice.name = 'test2'
>>> values.append(choice)
>>> reference = int()
>>> item = kdeui.KConfigSkeleton.ItemEnum('group', 'key', reference, values)
Actual Results:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: ItemEnum(): argument 4 has unexpected type 'list'
Expected Results:
No TypeError...
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