Re: [PyQt] kdebindings 4.4.4 build failure with sip-4.11.1 continues
28 Eylül 2010 Salı günü (saat 19:01:26) Phil Thompson şunları yazmıştı: > I'll probably be able to look at it on Thursday. For now, I'm able to build PyKDE with the workaround patch attached. FYI. -- Gökçen Eraslan Pardus Developer diff -Naur PyQt-x11-gpl-snapshot-4.8-eac5dd92c907-orig//sip/QtCore/qglobal.sip PyQt-x11-gpl-snapshot-4.8-eac5dd92c907/sip/QtCore/qglobal.sip --- PyQt-x11-gpl-snapshot-4.8-eac5dd92c907-orig//sip/QtCore/qglobal.sip 2010-09-28 14:06:40.68247 +0300 +++ PyQt-x11-gpl-snapshot-4.8-eac5dd92c907/sip/QtCore/qglobal.sip 2010-09-28 14:07:22.95247 +0300 @@ -304,22 +304,6 @@ //QFlags operator&(ENUM f) const; QFlags operator~() const; -// These are here to ensure consistency between, for example: -// Qt.AlignLeft | Qt.AlignTop | Qt.TextWordWrap and -// Qt.AlignLeft | Qt.TextWordWrap | Qt.AlignTop -// In the first of the above Qt.TextWordWrap is ored with a -// Qt.AlignmentFlag enum. In the second it is being ored with a -// Qt.Alignment class. -QFlags operator|(int f); -%MethodCode -sipRes = new QFlags(*a0 | (ENUM(a1))); -%End - -QFlags operator^(int f); -%MethodCode -sipRes = new QFlags(*a0 ^ (ENUM(a1))); -%End - // These are necessary to prevent Python comparing object IDs. bool operator==(const QFlags &f) const; %MethodCode signature.asc Description: This is a digitally signed message part. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] QString rfind exception in uic.loadUi
Hello, When I run this code: from PyQt4 import uic from PyQt4.QtCore import QString uic.loadUi(QString("notexists.ui")) in sip 4.10.2 and PyQt 4.7.3, I'm getting - Traceback (most recent call last): ... ... IOError: [Errno 2] No such file or directory: PyQt4.QtCore.QString(u'notexists.ui') - as usual but in sip 4.11.1 and PyQt 4.7.6, I'm getting: - Traceback (most recent call last): File "uicexample.py", line 7, in uic.loadUi(QString("notexists.ui")) File "/usr/lib/python2.7/site-packages/PyQt4/uic/__init__.py", line 182, in loadUi return DynamicUILoader().loadUi(uifile, baseinstance) File "/usr/lib/python2.7/site-packages/PyQt4/uic/Loader/loader.py", line 24, in loadUi return self.parse(filename, os.path.dirname(filename)) File "/usr/lib/python2.7/posixpath.py", line 119, in dirname i = p.rfind('/') + 1 AttributeError: 'QString' object has no attribute 'rfind' - Any ideas about that? -- Gökçen Eraslan signature.asc Description: This is a digitally signed message part. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] pyuic4 crash in 4.7.6
07 Eylül 2010 Salı günü (saat 12:32:29) Sybren A. Stüvel şunları yazmıştı: > Thanks for the workaround. However, it's not something I'd like to put > into our development manual and have every developer go through. I'll > wait for a proper fix That's fixed in the latest snapshot, by the way. -- Gökçen Eraslan signature.asc Description: This is a digitally signed message part. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ANN: PyQt v4.7.5 and SIP v4.11 Released
31 Ağustos 2010 Salı günü (saat 20:12:09) Phil Thompson şunları yazmıştı: > PyQt v4.7.5 and SIP v4.11 have been released and can be downloaded from > the usual places. > > Both include functional enhancements as well as bug fixes - see the > respective NEWS files or website news items for the details. > > The version number of the SIP API has been bumped so all modules (e.g. > PyKDE) will need to be re-compiled. Can you also document the removal of 'u' union in sipSimpleWrapper and addition of 'void *data' to the "Potential Incompatibilities with Earlier Versions" section of SIP documentation? For example, Python module of Avogadro[1] now doesn't compile with sip 4.11 because of that. [1] http://avogadro.openmolecules.net/wiki/Main_Page -- Gökçen Eraslan Pardus Developer signature.asc Description: This is a digitally signed message part. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Can't load UI files under Turkish locale (again)
Hi, In an early version of PyQt(< 4.4.4) we were having problems about loading ui files with Turkish locale like: File "/usr/lib/python2.4/site-packages/PyQt4/uic/properties.py", line 220, in setProperties getattr(widget, "set%s%s" % (propname[0].upper(), propname[1:]))( AttributeError: seticon And this problem was fixed after this thread[1], and PyQt 4.4.4 was fine. But in PyQt 4.5, according patch in the thread (also attached) is not included. Is this intentional or just forgotten? Can you include it again in next release? Thanks. [1] http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg11374.html -- Gökçen Eraslan Pardus Developer --- a/pyuic/uic/properties.py 2009-06-05 11:50:39.0 +0300 +++ b/pyuic/uic/properties.py 2009-04-29 09:45:55.0 +0300 @@ -1 +1,3 @@ import logging +import string + @@ -10,6 +12,14 @@ QtGui = None +# A translation table for converting ASCII lower case to upper case. +_ascii_trans_table = string.maketrans(string.ascii_lowercase, string.ascii_uppercase) + +# Convert a string to ASCII upper case irrespective of the current locale. +def ascii_upper(s): +return s.translate(_ascii_trans_table) + + def int_list(prop): return [int(child.text) for child in prop] @@ -261,7 +267,8 @@ elif hasattr(self, propname): getattr(self, propname)(widget, prop) else: -getattr(widget, "set%s%s" % (propname[0].upper(), propname[1:]))(self.convert(prop, widget)) +getattr(widget, "set%s%s" % (ascii_upper(propname[0]), +propname[1:]))(self.convert(prop, widget)) # SPECIAL PROPERTIES # If a property has a well-known value type but needs special, @@ -271,8 +278,8 @@ # populated. def _delay(self, widget, prop): propname = prop.attrib["name"] -self.delayed_props.append(( -getattr(widget, "set%s%s" % (propname[0].upper(), propname[1:])), +self.delayed_props.append((getattr(widget, +"set%s%s" % (ascii_upper(propname[0]), propname[1:])), self.convert(prop))) # These properties will be set with a widget.setProperty call rather than ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] DBus mainloop for PyQt3
Hi, For receiving DBus signals in PyQt3 applications, I developed a mainloop[1] using this dbus-qt4 backport[2] and PyQt4 mainloop implementation. You can test it by examples inside it. My question is, can/should this mainloop be added to the PyQt3, so it consists its own mainloop like PyQt4. Cheers. [1] http://svn.pardus.org.tr/uludag/trunk/dbus-pyqt3-mainloop/ [2] http://websvn.kde.org/trunk/playground/utils/kdbus/src/dbus-qt3-backport/ -- Gökçen Eraslan ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt