[core] Rename events for more clarity
This commit is contained in:
parent
b5b62c8827
commit
9e32cdef5d
4 changed files with 8 additions and 8 deletions
|
@ -32,8 +32,8 @@ def handle_input(output):
|
|||
modules[event['name']] = True
|
||||
except ValueError:
|
||||
pass
|
||||
core.event.trigger('update-modules', modules.keys())
|
||||
core.event.trigger('update')
|
||||
core.event.trigger('update', modules.keys())
|
||||
core.event.trigger('draw')
|
||||
|
||||
poll.unregister(sys.stdin.fileno())
|
||||
|
||||
|
@ -58,8 +58,8 @@ def main():
|
|||
output.modules(modules)
|
||||
core.event.trigger('start')
|
||||
while True:
|
||||
output.update()
|
||||
core.event.trigger('update')
|
||||
core.event.trigger('draw')
|
||||
output.wait(config.interval())
|
||||
core.event.trigger('stop')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue