Merge pull request #21 from cuu/master

sound setting OnLoadCb sync sound volume
This commit is contained in:
clockworkpi 2018-06-01 18:55:42 +08:00 committed by GitHub
commit 90477c8f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,11 @@ class SoundPage(Page):
m = alsaaudio.Mixer()
self._MySlider.SetValue(m.getvolume()[0])
def OnLoadCb(self):
m = alsaaudio.Mixer()
self._MySlider.SetValue(m.getvolume()[0])
def WhenSliderDrag(self,value): ##value 0-100
if value < 0 or value > 100:
return