[PyQt] pykde4 solid question
peter at liedler.at
Sun Jul 6 13:16:50 BST 2008
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:
drive = cdrom.asDeviceInterface
burner = cdrom.asDeviceInterface
Which gives me the following error:
Am I using Solid in a wrong way?
Thanks for your help
More information about the PyQt