From ca5426bbde210b1bf8e30cdae66540fc4a4b16fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Wed, 25 Nov 2020 10:21:44 +0100 Subject: [PATCH] Some spaces changes --- README.md | 20 ++++++++++---------- examples/genericmonitor.py | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f0b79e2..8b14112 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ All functions read JSON formatted parameters "items": [ { "name" : "", - "box" : "", // Optional : left, right or center + "box" : ["left"|"center"|"right"], // Optional : center by default "text" : , // Optional "icon" : , // Optional "popup" : , // Optional @@ -66,26 +66,26 @@ DBUS object =========== is defined as : - { + "text" : { "text" : "Text to be displayed", "style" : "CSS style to be applied", // Optional } is defined as : - { + "icon" : { "path" : "Icon path", "style" : "CSS style to be applied", // Optional } is defined as : - { + "picture" : { "path" : "Icon path", "width" : XXX, // Optional : Force width in pixels, can be -1 for defaut value "height" : XXX, // Optional : Force height in pixels, can be -1 for defaut value } and/or ] } @@ -99,9 +99,9 @@ Signals can be : "on-dblclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] "on-rightclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] "on-rightdblclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] - "on-enter" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] - "on-leave" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] - "on-scroll" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] + "on-enter" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] + "on-leave" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] + "on-scroll" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] Targets : @@ -115,8 +115,8 @@ Targets : Signal names emit when action "signal" is specified : * onClick - * onRightClick * onDblClick + * onRightClick * onRightDblClick * onEnter * onLeave @@ -140,7 +140,7 @@ You can test it with command line : gdbus call --session --dest org.gnome.Shell --object-path /com/soutade/GenericMonitor --method com.soutade.GenericMonitor.deleteGroups '{"groups":["new"]}' -Python example is available +Python examples is available Development diff --git a/examples/genericmonitor.py b/examples/genericmonitor.py index aa22073..ac973bb 100644 --- a/examples/genericmonitor.py +++ b/examples/genericmonitor.py @@ -375,10 +375,10 @@ class GenericMonitorItem: "on-dblclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] "on-rightclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] "on-rightdblclick" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] - "on-click" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] - "on-enter" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] - "on-leave" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] - "on-scroll" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] + "on-click" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] + "on-enter" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] + "on-leave" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] + "on-scroll" : ["signal"|"delete"|"open-popup"|"close-popup"|"toggle-popup"] popup : GenericMonitorPopup, optional Popup to be displayed box : str, optional