patch by Pieter Grimmerink: use ext3 largefile option only for disks > 4G
[enigma2.git] / lib / python / Components / VariableValue.py
1 class VariableValue(object):
2         """VariableValue can be used for components which have a variable value (like eSlider), based on any widget with setValue call"""
3         
4         def __init__(self):
5                 self.__value = 0
6
7         def setValue(self, value):
8                 self.__value = value
9                 if self.instance:
10                         self.instance.setValue(self.__value)
11
12         def getValue(self):
13                 return self.__value
14
15         def postWidgetCreate(self, instance):
16                 print self
17                 print self.GUI_WIDGET
18                 self.instance.setValue(self.__value)
19
20         value = property(getValue, setValue)