[PyQt] pykde4 solid question
Peter Liedler
peter at liedler.at
Sun Jul 6 13:16:50 BST 2008
Hello there,
earlier this year I wrote a graphgical frontend to lxdvdrip --> klxdvdrip.
One of the functions I wrote used the supported Media function of solid
to determine if the OpticalDrive is a burining device.
In newer versions this code crashes. As I am eager to fix this I tried
some workarounds - none of them worked. It seems to me that the
SupportedMedia() function is no loinger available.
Here is a code sample:
curDevice = Solid.Device.allDevices()
for cdrom in curDevice:
if cdrom.isDeviceInterface
(Solid.DeviceInterface.OpticalDrive):
drive = cdrom.asDeviceInterface
(Solid.DeviceInterface.Block)
burner = cdrom.asDeviceInterface
(Solid.DeviceInterface.OpticalDrive)
print cdrom.supportedMedia()
Which gives me the following error:
print cdrom.supportedMedia()
AttributeError: supportedMedia
Am I using Solid in a wrong way?
Thanks for your help
Peter
More information about the PyQt
mailing list