Re: [PyQt] QtDBus: Calling a method with an Array of Strings signature with Python 3

2011-12-06 Thread Phil Thompson
On Tue, 06 Dec 2011 17:43:36 +, Chris Mayo wrote: > On 05/12/11 21:31, Phil Thompson wrote: >> On Mon, 05 Dec 2011 19:12:33 +, Chris Mayo >> wrote: Try this... arg = QDBusArgument() arg.beginArray(QMetaType.QString) arg.add("") arg.endArray()

Re: [PyQt] QtDBus: Calling a method with an Array of Strings signature with Python 3

2011-12-06 Thread Chris Mayo
On 05/12/11 21:31, Phil Thompson wrote: On Mon, 05 Dec 2011 19:12:33 +, Chris Mayo wrote: Try this... arg = QDBusArgument() arg.beginArray(QMetaType.QString) arg.add("") arg.endArray() and pass arg to call(). Doesn't seem to work: device_iface = QtDBus.QDBusInterface('org.freedes

Re: [PyQt] QtDBus: Calling a method with an Array of Strings signature with Python 3

2011-12-05 Thread Phil Thompson
On Mon, 05 Dec 2011 19:12:33 +, Chris Mayo wrote: >> >> Try this... >> >> arg = QDBusArgument() >> arg.beginArray(QMetaType.QString) >> arg.add("") >> arg.endArray() >> >> and pass arg to call(). > > Doesn't seem to work: > > device_iface = QtDBus.QDBusInterface('org.freedesktop.UDisks',

Re: [PyQt] QtDBus: Calling a method with an Array of Strings signature with Python 3

2011-12-05 Thread Chris Mayo
Try this... arg = QDBusArgument() arg.beginArray(QMetaType.QString) arg.add("") arg.endArray() and pass arg to call(). Doesn't seem to work: device_iface = QtDBus.QDBusInterface('org.freedesktop.UDisks', '/org/freedesktop/UDisks/devices/sr0', 'org.freedesktop.UDisks.Device', bus) a

Re: [PyQt] QtDBus: Calling a method with an Array of Strings signature with Python 3

2011-12-05 Thread Phil Thompson
On Sun, 04 Dec 2011 20:17:52 +, Chris Mayo wrote: > With Python 2 I can do (where /dev/sr0 is a cdrom): > > bus = QtDBus.QDBusConnection.systemBus() > device_iface = QtDBus.QDBusInterface('org.freedesktop.UDisks', > '/org/freedesktop/UDisks/devices/sr0', 'org.freedesktop.UDisks.Device',

[PyQt] QtDBus: Calling a method with an Array of Strings signature with Python 3

2011-12-04 Thread Chris Mayo
With Python 2 I can do (where /dev/sr0 is a cdrom): bus = QtDBus.QDBusConnection.systemBus() device_iface = QtDBus.QDBusInterface('org.freedesktop.UDisks', '/org/freedesktop/UDisks/devices/sr0', 'org.freedesktop.UDisks.Device', bus) reply = device_iface.call("DriveEject", QStringList()) But