[core] replace widget.minwidth with widget.set('theme.minwidth')
This commit is contained in:
parent
b841ba3c93
commit
47e8d5b82b
4 changed files with 3 additions and 5 deletions
|
@ -17,7 +17,7 @@ import core.input
|
|||
class Module(core.module.Module):
|
||||
def __init__(self, config=None):
|
||||
super().__init__(config, core.widget.Widget(self.utilization))
|
||||
self.widget().minwidth = self._format.format(100.0-10e-20)
|
||||
self.widget().set('theme.minwidth', self._format.format(100.0-10e-20))
|
||||
self._utilization = psutil.cpu_percent(percpu=False)
|
||||
core.input.register(self, button=core.input.LEFT_MOUSE,
|
||||
cmd='gnome-system-monitor')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue