[Kde-bindings] [Bug 211590] New: pykdeuic4 generates the wrong python code for KEditListBox
Luca Beltrame
einar at heavensinferno.net
Fri Oct 23 20:17:13 UTC 2009
https://bugs.kde.org/show_bug.cgi?id=211590
Summary: pykdeuic4 generates the wrong python code for
KEditListBox
Product: bindings
Version: unspecified
Platform: SuSE RPMs
OS/Version: unspecified
Status: NEW
Severity: normal
Priority: NOR
Component: general
AssignedTo: kde-bindings at kde.org
ReportedBy: einar at heavensinferno.net
Version: (using KDE 4.3.2)
Installed from: SuSE RPMs
When using pykdeuic4 to process .ui files to Python files, there are problems
regarding the parsing of KEditListBox.
Specifically:
1. Create an empty widget in Qt Designer
2. Insert a KEditListBox in it
3. Set buttons to only Add and Remove
4. Save the .ui file
This yields, in the generated Python code, something like this:
self.keditlistbox.setButtons(QtGui.KEditListBox.Add |
QtGui.KEditListBox.Remove)
This is actually wrong (first of all because they're not members of QtGui). The
proper syntax would be:
self.keditlistbox.setButtons(KEdlitListBox.Button(KEditListBox.Add |
KEditListBox.Remove)
Notice: I'm not sure if this is a pykdeuic4 bug or a Designer bug. I'm
attaching the ui file to this report just in case.
--
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