ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
enlighten.ui.Sounds.Sound Class Reference

A single playable sound (.wav file, etc) More...

Public Member Functions

 __del__ (self)
 
 __init__ (self, pathname, parent=None)
 
 is_enabled (self)
 
 play (self, mask=None)
 
 playAsync (self)
 

Public Attributes

 parent = parent
 
 pathname = pathname
 

Detailed Description

A single playable sound (.wav file, etc)

This has a parent-reference to Sounds so that an individual sounds will know if the overall sound-system is enabled.

Constructor & Destructor Documentation

◆ __del__()

enlighten.ui.Sounds.Sound.__del__ ( self)

◆ __init__()

enlighten.ui.Sounds.Sound.__init__ ( self,
pathname,
parent = None )

Member Function Documentation

◆ is_enabled()

enlighten.ui.Sounds.Sound.is_enabled ( self)

◆ play()

enlighten.ui.Sounds.Sound.play ( self,
mask = None )

◆ playAsync()

enlighten.ui.Sounds.Sound.playAsync ( self)

Member Data Documentation

◆ parent

enlighten.ui.Sounds.Sound.parent = parent

◆ pathname

enlighten.ui.Sounds.Sound.pathname = pathname

The documentation for this class was generated from the following file: