77ec58ed875fdb9e634aa2d3bc2eac99b67d5558
[enigma2.git] / lib / python / Components / Converter / RadioText.py
1 from Components.Converter.Converter import Converter
2 from Components.Element import cached
3
4 class RadioText(Converter, object):
5         def __init__(self, type):
6                 Converter.__init__(self, type)
7
8         @cached
9         def getText(self):
10                 rt = self.source.radiotext
11                 if rt is None:
12                         return "N/A"
13                 return rt
14
15         text = property(getText)