Ejemplo n.º 1
0
 def get_ui(self, cfg, id=None):
     m = Cpu(self.app).prepare(cfg)
     return UI.HContainer(
         UI.ProgressBar(value=m.get_value(), max=m.get_max(), width=220),
         UI.Label(text=str(m.get_value())+'%'),
     )