USED = 1
SIZE = 2
- def __init__(self, path, type):
+ def __init__(self, path, type, update = True):
GUIComponent.__init__(self)
VariableText.__init__(self)
self.type = type
self.path = path
- self.update()
+ if update:
+ self.update()
def update(self):
try:
if self.type == self.FREE:
free = stat.f_bfree / 1000 * stat.f_bsize / 1000
- self.setText("%dMB " + _("free diskspace") % (free))
+ self.setText(("%dMB " + _("free diskspace")) % (free))
def createWidget(self, parent):
return eLabel(parent)