-from GUIComponent import *
-from VariableText import *
-import os
+from GUIComponent import GUIComponent
+from VariableText import VariableText
+from os import statvfs
from enigma import eLabel
def update(self):
try:
- stat = os.statvfs(self.path)
+ stat = statvfs(self.path)
except OSError:
return -1
if self.type == self.FREE:
free = stat.f_bfree / 1000 * stat.f_bsize / 1000
- self.setText(("%dMB " + _("free diskspace")) % (free))
+ self.setText(("%d MB " + _("free diskspace")) % (free))
GUI_WIDGET = eLabel