Logo Search packages:      
Sourcecode: nagstamon version File versions  Download package

def Nagstamon::nagstamonActions::PlaySound::Play (   self,
  file 
)

    depending on platform choose method to play sound

Definition at line 378 of file nagstamonActions.py.

00378                         :
        """
            depending on platform choose method to play sound
        """
        # debug
        if str(self.conf.debug_mode) == "True":
            print "Playing sound:", file
        try:
            if not platform.system() == "Windows":
                commands.getoutput("play -q %s" % file)
            else:
                winsound.PlaySound(file, winsound.SND_FILENAME)
        except:
            pass
            
                    
class FlashStatusbar(threading.Thread):


Generated by  Doxygen 1.6.0   Back to index