Version 0.1.1.
[SysBars.git] / plugins / mem.py
blob44dd12b12995e83d9b4b4d0d0bfa5139e76dacb7
1 import addedit
2 import bardesc
3 import plugins
5 plugins.types['mem'] = _("Memory")
8 platform = plugins.get_platform()
11 class Description(bardesc.Description):
12 def __init__(self, num):
13 bardesc.Description.__init__(self, num)
14 self.type = 'mem'
16 def get_name(self):
17 return "Memory"
19 def get_range(self):
20 return platform.get_mem_range()
22 def get_reading(self):
23 return platform.get_mem_used()
27 class Dialog(addedit.Dialog):
28 def get_type_name(self):
29 return _("Memory")
31 def get_default_label(self):
32 return _("M")