mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 02:08:50 +01:00
Merge pull request #21 from cuu/master
sound setting OnLoadCb sync sound volume
This commit is contained in:
commit
90477c8f34
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user