Skip to content

Commit 7ad6bae

Browse files
committed
Create a dict of templates and their corresponding values.
1 parent d198572 commit 7ad6bae

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tkintermd/constants.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,4 +287,16 @@ def foo():
287287
<Body>"""
288288
centered_template_bottom = """</Body>
289289
</Html>"""
290-
template_list = ["default", "centered"]
290+
template_list = ["default", "centered"]
291+
template_dict = {
292+
"default": [
293+
default_template_top,
294+
default_template_middle,
295+
default_template_bottom,
296+
],
297+
"centered": [
298+
centered_template_top,
299+
centered_template_middle,
300+
centered_template_bottom,
301+
]
302+
}

0 commit comments

Comments
 (0)