Mailinglist Archive: opensuse-bugs (4819 mails)

< Previous Next >
[Bug 651746] New: PyQt4 - error in PyQt4/uic/properties.py - split complains about not enough arguments
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 5 Nov 2010 17:32:14 +0000
  • Message-id: <bug-651746-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>

https://bugzilla.novell.com/show_bug.cgi?id=651746

https://bugzilla.novell.com/show_bug.cgi?id=651746#c0


Summary: PyQt4 - error in PyQt4/uic/properties.py - split
complains about not enough arguments
Classification: openSUSE
Product: openSUSE 11.3
Version: Final
Platform: x86-64
OS/Version: openSUSE 11.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: KDE4 Applications
AssignedTo: kde-maintainers@xxxxxxx
ReportedBy: gassauer@xxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


User-Agent: Mozilla/5.0 (compatible; Konqueror/4.5; Linux) KHTML/4.5.3
(like Gecko) SUSE

had to replace
****************** NEW ***********
def _pyEnumMember(self, cpp_name):
try:
prefix, membername = cpp_name.split("::")
DEBUG(membername)
if prefix == "Qt":
return getattr(QtCore.Qt, membername)
else:
return getattr(getattr(QtGui, prefix), membername)
except ValueError:
pass

try:
return getattr(QtCore.Qt, cpp_name)
except AttributeError:
# There seems to be a bug where this can succeed when it shouldn't.
# If so it will be picked up when the generated code is run.
return getattr(getattr(QtGui, self.wclass), cpp_name)

****************** DISTRIBUTED ***********
def _pyEnumMember(self, cpp_name):
prefix, membername = cpp_name.split("::")

if prefix == "Qt":
return getattr(QtCore.Qt, membername)

scope = self.factory.findQObjectType(prefix)
if scope is None:
raise AttributeError("unknown enum %s" % cpp_name)

return getattr(scope, membername)

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
This Thread
  • No further messages