Python and KDE

Bill Dandreta wjdandreta at att.net
Fri Jul 23 10:13:44 EDT 2004


Hi Dylan,

 >> I was wondering if it is possible, through some module, to check 
whether the screensaver is running in KDE? <<

This system command will give the PID number if the screensaver is 
running and no output if it is not:

ps -e | grep xscreensaver

 >> Is it possible to play sounds using Python? If so, how would I go 
about it? <<

Quick and dirty solution install madplay (command-line MPEG decoder and 
player) which can play wav files as well as other file formats). Then 
run this system command:

madplay mysound.wav

Bill



More information about the Python-list mailing list