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

Encapsulates ENLIGHTEN's limited audio capabilities. More...

Public Member Functions

 __init__ (self, ctl)
 
 clear (self)
 
 enable_callback (self)
 
 get (self, name)
 
 is_enabled (self)
 
 play (self, name, repeat=True)
 
 reset_repeat (self)
 
 stop (self)
 

Public Attributes

 cb_enable = cfu.checkBox_sound_enable
 
 ctl = ctl
 
 enable_callback = Sound(pathname, parent=self)
 
bool enabled = False
 
 last_sound_name = None
 
int min_interval_sec = 3
 
dict sounds
 

Static Public Attributes

str PATH = "enlighten/assets/example_data/sounds"
 

Detailed Description

Encapsulates ENLIGHTEN's limited audio capabilities.

Note
At this time, we only support sound on Windows
Todo
Allow user sound overrides in EnlightenSpectra/sounds (basename = event)

Constructor & Destructor Documentation

◆ __init__()

enlighten.ui.Sounds.Sounds.__init__ ( self,
ctl )

Member Function Documentation

◆ clear()

enlighten.ui.Sounds.Sounds.clear ( self)

◆ enable_callback()

enlighten.ui.Sounds.Sounds.enable_callback ( self)

◆ get()

enlighten.ui.Sounds.Sounds.get ( self,
name )

◆ is_enabled()

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

◆ play()

enlighten.ui.Sounds.Sounds.play ( self,
name,
repeat = True )

◆ reset_repeat()

enlighten.ui.Sounds.Sounds.reset_repeat ( self)

◆ stop()

enlighten.ui.Sounds.Sounds.stop ( self)

Member Data Documentation

◆ cb_enable

enlighten.ui.Sounds.Sounds.cb_enable = cfu.checkBox_sound_enable

◆ ctl

enlighten.ui.Sounds.Sounds.ctl = ctl

◆ enable_callback

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

◆ enabled

enlighten.ui.Sounds.Sounds.enabled = False

◆ last_sound_name

enlighten.ui.Sounds.Sounds.last_sound_name = None

◆ min_interval_sec

int enlighten.ui.Sounds.Sounds.min_interval_sec = 3

◆ PATH

enlighten.ui.Sounds.Sounds.PATH = "enlighten/assets/example_data/sounds"
static

◆ sounds

dict enlighten.ui.Sounds.Sounds.sounds

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