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)
arg = QtDBus.QDBusArgument()
arg.beginArray(QMetaType.QString)
arg.add("")
arg.endArray()
reply = device_iface.call("DriveEject", arg)
print(reply.errorMessage())
Returns:
Unknown option
PyQt-x11-gpl-snapshot-4.9-512e7813ed74
Chris
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt