[core] Update only affected widgets on input event

When receiving an input event, only update affected widgets, identified by
their instance ID.

see #353
This commit is contained in:
Tobias Witek 2019-01-19 14:07:17 +01:00
parent 44a50c0b36
commit 3d9279c444
4 changed files with 49 additions and 5 deletions

View file

@ -20,7 +20,6 @@ def asbool(val):
return val in ("t", "true", "y", "yes", "on", "1")
def execute(cmd, wait=True):
logging.info("executing command '{}'".format(cmd))
args = shlex.split(cmd)
proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
rv = None
@ -35,7 +34,6 @@ def execute(cmd, wait=True):
else:
rv = out
logging.info(u"command returned '{}'".format("" if not rv else rv))
return rv
def bytefmt(num):