DirectSlider sounds


Does anybody knows how to remove or change the default sounds of DirectSlider? (rollover and clicking)

With DirectButton i do this:

DirectButton(rolloverSound = None, clickSound = None) 

But rolloverSound and clickSound apparently are not available on the slider.


Use thumb_rolloverSound and thumb_clickSound.


self.your_slider.thumb["clickSound"] = None
self.your_slider.thumb["rolloverSound"] = None

the whole code for that can be found at the end of direct/src/gui/

Great! thanks.