X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/abd961024accfc54ffea8a36999417b44861c52b..f44dfc20f4ed708d67603f767a976c1168393627:/lib/python/Components/DiskInfo.py diff --git a/lib/python/Components/DiskInfo.py b/lib/python/Components/DiskInfo.py index 9490a0f8..1278ff99 100644 --- a/lib/python/Components/DiskInfo.py +++ b/lib/python/Components/DiskInfo.py @@ -6,7 +6,7 @@ from enigma import eLabel # TODO: Harddisk.py has similiar functions, but only similiar. # fix this to use same code -class DiskInfo(GUIComponent, VariableText): +class DiskInfo(VariableText, GUIComponent): FREE = 0 USED = 1 SIZE = 2 @@ -29,5 +29,4 @@ class DiskInfo(GUIComponent, VariableText): free = stat.f_bfree / 1000 * stat.f_bsize / 1000 self.setText(("%dMB " + _("free diskspace")) % (free)) - def createWidget(self, parent): - return eLabel(parent) + GUI_WIDGET = eLabel