X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3..eca375cca394a4f593cb45e8fa7534620b157aec:/lib/python/Components/Slider.py diff --git a/lib/python/Components/Slider.py b/lib/python/Components/Slider.py index e61b47f4..b8144bb5 100644 --- a/lib/python/Components/Slider.py +++ b/lib/python/Components/Slider.py @@ -13,7 +13,7 @@ class Slider(VariableValue, HTMLComponent, GUIComponent): self.min = min self.max = max - def createWidget(self, parent): - g = eSlider(parent) - g.setRange(self.min, self.max) - return g + GUI_WIDGET = eSlider + + def postWidgetCreate(self, instance): + instance.setRange(self.min, self.max)