[PyQt] unicode(QChar) produces unexpected result?

2012-08-09 Thread David Cortesi
To get a python string copy of the contents of a QString object, I have been using unicode(some_qstring) . >>> qs = QString(u'BAZ') >>> len(unicode(qs)) 3 So I was surprised when I did the analogous thing to get a python string copy of the contents of a QChar. >>> qc = QChar(u'Z') >>> len(unicod

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-09 Thread Evade Flow
Oops--nevermind about that SO post. I removed it after realizing that the Chat Demo I originally posted does not, in fact, export any functions accepting an *array* of struct. After modifying it (in a slightly contrived way) so that it does, the dbus-python script to invoke it works fine. If anyo

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-09 Thread Evade Flow
While attempting to put together a test case for this array-of-struct difficulty I'm having, I discovered that I can't even talk to most of these (C++/Qt) services using the standard dbus-python module. For any method that takes an array-of-struct, I always get 'No such method' errors. Since this