From 573abab9e7fde4c863ee37a5b7e7d5fbcc540c34 Mon Sep 17 00:00:00 2001 From: Kaalleen Date: Wed, 10 May 2023 15:57:21 +0200 Subject: add help tab to gradient block extension --- lib/extensions/gradient_blocks.py | 3 +++ templates/gradient_blocks.xml | 27 ++++++++++++++++++++------- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/lib/extensions/gradient_blocks.py b/lib/extensions/gradient_blocks.py index 563e3127..d80d5340 100644 --- a/lib/extensions/gradient_blocks.py +++ b/lib/extensions/gradient_blocks.py @@ -28,6 +28,9 @@ class GradientBlocks(CommandsExtension): def __init__(self, *args, **kwargs): CommandsExtension.__init__(self, *args, **kwargs) + self.arg_parser.add_argument("--notebook", type=str, default=0.0) + self.arg_parser.add_argument("--options", type=str, default=0.0) + self.arg_parser.add_argument("--info", type=str, default=0.0) self.arg_parser.add_argument("-e", "--end-row-spacing", type=float, default=0.0, dest="end_row_spacing") def effect(self): diff --git a/templates/gradient_blocks.xml b/templates/gradient_blocks.xml index d5618704..f824d514 100644 --- a/templates/gradient_blocks.xml +++ b/templates/gradient_blocks.xml @@ -11,13 +11,26 @@ - 0 + + + 0 + + + + + + + + + + + -- cgit v1.2.3