コード例 #1
0
ファイル: widget.py プロジェクト: netconstructor/genesis
 def get_ui(self, cfg, id=None):
     self.title = "%s Disk Usage" % cfg
     if cfg == None:
         cfg = "total"
     m = DiskUsageMeter(self.app).prepare(cfg)
     return UI.HContainer(
         UI.ProgressBar(value=m.get_value(), max=m.get_max(), width=220), UI.Label(text=str("%d%%" % m.get_value()))
     )
コード例 #2
0
 def get_config_dialog(self):
     usageMeter = DiskUsageMeter(self.app)
     dialog = self.app.inflate('sysmon:hddstat-config')
     for option in usageMeter.get_variants():
         dialog.append('list', UI.SelectOption(
             value=option,
             text=option,
         ))
     return dialog
コード例 #3
0
 def get_ui(self, cfg, id=None):
     self.title = '%s Disk Usage' % cfg
     if cfg == None:
         cfg = "total"
     m = DiskUsageMeter(self.app).prepare(cfg)
     return UI.HContainer(
         UI.ProgressBar(value=m.get_value(), max=m.get_max(), width=220),
         UI.Label(text=str('%d%%' % m.get_value())),
     )
コード例 #4
0
ファイル: widget.py プロジェクト: IsSuEat/genesis
 def get_config_dialog(self):
     usageMeter = DiskUsageMeter(self.app)
     dialog = self.app.inflate('sysmon:hddstat-config')
     for option in usageMeter.get_variants():
         dialog.append('list', UI.SelectOption(
             value=option,
             text=option,
         ))
     return dialog
コード例 #5
0
ファイル: widget.py プロジェクト: Bugsbane/genesis
 def get_ui(self, cfg, id=None):
     self.title = "%s Disk Usage" % cfg
     if cfg == None:
         cfg = "total"
     m = DiskUsageMeter(self.app).prepare(cfg)
     return UI.ProgressBar(value=m.get_value(), min=0, max=m.get_max())
コード例 #6
0
ファイル: widget.py プロジェクト: ardnet/genesis
 def get_ui(self, cfg, id=None):
     self.title = '%s Disk Usage' % cfg
     if cfg == None:
         cfg = "total"
     m = DiskUsageMeter(self.app).prepare(cfg)
     return UI.ProgressBar(value=m.get_value(), min=0, max=m.get_max())