1 from Converter import Converter
2 from Components.config import *
3 from enigma import eDVBVolumecontrol #this is not nice
4 class VolumeToText(Converter, object):
6 def __init__(self, type):
7 Converter.__init__(self, type)
8 self.volctrl = eDVBVolumecontrol.getInstance() # this is not nice
10 def getHTML(self, id):
11 return self.getText() # encode & etc. here!
13 r = "%s\n"%config.audio.volume.value
14 if self.volctrl.isMuted():
21 text = property(getText)