comparison sat_frontends/quick_frontend/quick_app.py @ 3168:1cb232c9e845

quick frontends (widgets): added widgetNew and widgetDelete listeners: - `widgetNew` is called when a brand new widget is created (not when a new instance is created if there is already an existing one) - `widgetDelete` is called when all instances of a widget (with a given widget_hash) have been deleted.
author Goffi <goffi@goffi.org>
date Wed, 12 Feb 2020 19:46:14 +0100
parents d0fb79f97466
children 39d7327583e1
comparison
equal deleted inserted replaced
3167:d0fb79f97466 3168:1cb232c9e845
558 args: (entity, show, priority, statuses, profile) 558 args: (entity, show, priority, statuses, profile)
559 - selected: called when a widget is selected 559 - selected: called when a widget is selected
560 args: (selected_widget,) 560 args: (selected_widget,)
561 - notification: called when a new notification is emited 561 - notification: called when a new notification is emited
562 args: (entity, notification_data, profile) 562 args: (entity, notification_data, profile)
563 - notification_clear: called when notifications are cleared 563 - notificationsClear: called when notifications are cleared
564 args: (entity, type_, profile) 564 args: (entity, type_, profile)
565 - widgetNew: a new QuickWidget has been created
566 args: (widget,)
567 - widgetDeleted: all instances of a widget with specific hash have been
568 deleted
569 args: (widget_deleted,)
565 - menu: called when a menu item is added or removed 570 - menu: called when a menu item is added or removed
566 args: (type_, path, path_i18n, item) were values are: 571 args: (type_, path, path_i18n, item) were values are:
567 type_: same as in [sat.core.sat_main.SAT.importMenu] 572 type_: same as in [sat.core.sat_main.SAT.importMenu]
568 path: same as in [sat.core.sat_main.SAT.importMenu] 573 path: same as in [sat.core.sat_main.SAT.importMenu]
569 path_i18n: translated path (or None if the item is removed) 574 path_i18n: translated path (or None if the item is removed)