summaryrefslogtreecommitdiff
path: root/clMonty.py
diff options
context:
space:
mode:
authorjerous <jerous@gmail.com>2008-10-16 00:34:42 +0200
committerjerous <jerous@gmail.com>2008-10-16 00:34:42 +0200
commit6b0be9bb0f776873b8b0d0c6cf1ec3547b89c60c (patch)
treee4014bcb5a8fd18ae21b787c19ee7000f67a396d /clMonty.py
parentca15ecdf6db1c35a9f3d093e985d1544045b9906 (diff)
limit volume
Diffstat (limited to 'clMonty.py')
-rw-r--r--clMonty.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/clMonty.py b/clMonty.py
index b407740..2513bd3 100644
--- a/clMonty.py
+++ b/clMonty.py
@@ -205,6 +205,7 @@ class Monty(QtCore.QObject):
def setVolume(self, volume):
"""Set volumne to $volume."""
+ volume=min(100, max(0, volume))
self._client.setvol(volume)