aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-24 18:12:08 +0300
committerBonfaceKilz2020-08-24 23:17:23 +0300
commit3c5b85696f8473f5c0a4c988307ce41ec806edf4 (patch)
tree9c3009bf382409ae7b4043cfbc32a5b98cbf8c30 /wqflask
parent7cafbbc2f13240c56ad31d47a7b429c9832c6df0 (diff)
downloadgenenetwork2-3c5b85696f8473f5c0a4c988307ce41ec806edf4.tar.gz
Add new wrapper class for HtmlGen method
* wqflask/wqflask/marker_regression/display_mapping_results.py: Add new class
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index 5925c38f..5104bd06 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -80,6 +80,41 @@ ARIAL_FILE = "./wqflask/static/fonts/arial.ttf"
assert(os.path.isfile(VERDANA_FILE))
+class HtmlGenWrapper:
+ """Wrapper Methods for HTML gen"""
+ @staticmethod
+ def create_image_tag(src, alt, **kwargs):
+ return HT.Image(src=src, alt=alt, **kwargs)
+
+ @staticmethod
+ def create_form_tag(**kwargs):
+ return HT.Form(**kwargs)
+
+ @staticmethod
+ def create_p_tag(**kwargs):
+ return HT.Paragraph(**kwargs)
+
+ @staticmethod
+ def create_br_tag():
+ return HT.BR()
+
+ @staticmethod
+ def create_input_tag(**kwargs):
+ return HT.Input(**kwargs)
+
+ @staticmethod
+ def create_area_tag(**kwargs):
+ return HT.Area(**kwargs)
+
+ @staticmethod
+ def create_link_tag(href, content, **kwargs):
+ return HT.Href(href, content, **kwargs)
+
+ @staticmethod
+ def create_map_tag(**kwargs):
+ return HT.Map(**kwargs)
+
+
class DisplayMappingResults(object):
"""Inteval Mapping Plot Page"""
cMGraphInterval = 5