From 0cdb62d836a4197170e6f7d6b319e9074e80ff15 Mon Sep 17 00:00:00 2001 From: Pierrick Rambaud Date: Wed, 14 Apr 2021 06:30:32 +0000 Subject: [PATCH] add a msg for download test Fix #29 --- component/message/en.json | 2 +- component/tile/convert_tile.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/component/message/en.json b/component/message/en.json index 4defbfc..6528cef 100644 --- a/component/message/en.json +++ b/component/message/en.json @@ -111,7 +111,7 @@ "default": { "btn": "Download test dataset", "msg": "the test files \"{}\" and \"{}\" have been added to the \"downloads\" folder", - "tooltip": "Click the button above to download the test files \"clc3class.tif\" and \"example.tif\" into the folder \"downloads\"" + "tooltip": "Click the button below to download the test files `clc3class.tif` and `example.tif` into the folder `~/downloads/`." } }, "gwb": { diff --git a/component/tile/convert_tile.py b/component/tile/convert_tile.py index 7ab86ef..96c7743 100644 --- a/component/tile/convert_tile.py +++ b/component/tile/convert_tile.py @@ -14,8 +14,8 @@ def __init__(self, io, nb_class): self.io = io # create the download layout - self.down_test = sw.Btn(cm.bin.default.btn, icon="mdi-cloud-download-outline", small=True, outlined=True, class_="ma-5") - tooltip = sw.Tooltip(widget=self.down_test, tooltip=cm.bin.default.tooltip) + mkd_txt = sw.Markdown(cm.bin.default.tooltip) + self.down_test = sw.Btn(cm.bin.default.btn, icon="mdi-cloud-download-outline", small=True, outlined=True, class_="mb-5") # create the widgets @@ -43,7 +43,7 @@ def __init__(self, io, nb_class): super().__init__( self.io.tile_id, cm.bin.title, - inputs = [tooltip, v.Divider(), requirements, self.file] + self.classes, + inputs = [mkd_txt, self.down_test, v.Divider(), requirements, self.file] + self.classes, output = self.output, btn = btn )