Changed volume logging level.
This commit is contained in:
parent
0d4edc4e57
commit
eff759d475
1 changed files with 6 additions and 2 deletions
|
@ -12,6 +12,9 @@ from time import time
|
||||||
import threading, Queue
|
import threading, Queue
|
||||||
from pnc.dep.attrdict import AttrDict
|
from pnc.dep.attrdict import AttrDict
|
||||||
|
|
||||||
|
import logging
|
||||||
|
logging.basicConfig(level=logging.WARNING)
|
||||||
|
|
||||||
reqmissing = []
|
reqmissing = []
|
||||||
optmissing = []
|
optmissing = []
|
||||||
try:
|
try:
|
||||||
|
@ -1693,10 +1696,11 @@ class PesterWindow(MovingWindow):
|
||||||
if pygame and pygame.mixer and \
|
if pygame and pygame.mixer and \
|
||||||
isinstance(sound, pygame.mixer.sound):
|
isinstance(sound, pygame.mixer.sound):
|
||||||
sound.set_volume(vol)
|
sound.set_volume(vol)
|
||||||
else:
|
elif not isinstance(sound, QtGui.QSound):
|
||||||
|
# We can't set a volume on those....
|
||||||
sound.setVolume(vol)
|
sound.setVolume(vol)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print "Couldn't set volume: {}".format(err)
|
logging.info("Couldn't set volume: {}".format(err))
|
||||||
|
|
||||||
def changeTheme(self, theme):
|
def changeTheme(self, theme):
|
||||||
# check theme
|
# check theme
|
||||||
|
|
Loading…
Reference in a new issue