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

def AmpacheTools::AmpacheGUI::AmpacheGUI::set_volume (   self,
  vol,
  args 
)
Set the volume, assumes the value is 0<vol<100.

Definition at line 3106 of file AmpacheGUI.py.

                                      :
            """Set the volume, assumes the value is 0<vol<100."""
            if vol >= 100:
                  vol = 100
            elif vol <= 0:
                  vol = 0
            self.volume_slider.set_value(vol)
            self.audio_engine.set_volume(vol)
            return self.audio_engine.get_volume()
            

Generated by  Doxygen 1.6.0   Back to index