Merge pull request #321 from jeffeb3/reduce_min_size_cpus.py
Use the parameter format to determine the minwidth
This commit is contained in:
commit
e5a003f961
1 changed files with 1 additions and 1 deletions
|
@ -20,8 +20,8 @@ import bumblebee.engine
|
||||||
class Module(bumblebee.engine.Module):
|
class Module(bumblebee.engine.Module):
|
||||||
def __init__(self, engine, config):
|
def __init__(self, engine, config):
|
||||||
widget = bumblebee.output.Widget(full_text=self.utilization)
|
widget = bumblebee.output.Widget(full_text=self.utilization)
|
||||||
widget.set("theme.minwidth", "99.9%")
|
|
||||||
super(Module, self).__init__(engine, config, widget)
|
super(Module, self).__init__(engine, config, widget)
|
||||||
|
widget.set("theme.minwidth", self._format.format(10.0-10e-20))
|
||||||
self._utilization = psutil.cpu_percent(percpu=False)
|
self._utilization = psutil.cpu_percent(percpu=False)
|
||||||
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE,
|
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE,
|
||||||
cmd="gnome-system-monitor")
|
cmd="gnome-system-monitor")
|
||||||
|
|
Loading…
Reference in a new issue